Kaydet (Commit) a27e89bd authored tarafından Georg Brandl's avatar Georg Brandl

#3711: .dll isn't a valid Python extension anymore.

üst 488a4f01
...@@ -102,10 +102,14 @@ described here are distributed with the Python sources in the ...@@ -102,10 +102,14 @@ described here are distributed with the Python sources in the
and it should call :cfunc:`Py_InitModule` with the string ``"spam"`` as its and it should call :cfunc:`Py_InitModule` with the string ``"spam"`` as its
first argument (use the minimal :file:`example.c` in this directory as a guide). first argument (use the minimal :file:`example.c` in this directory as a guide).
By convention, it lives in a file called :file:`spam.c` or :file:`spammodule.c`. By convention, it lives in a file called :file:`spam.c` or :file:`spammodule.c`.
The output file should be called :file:`spam.dll` or :file:`spam.pyd` (the The output file should be called :file:`spam.pyd` (in Release mode) or
latter is supported to avoid confusion with a system library :file:`spam.dll` to :file:`spam_d.pyd` (in Debug mode). The extension :file:`.pyd` was chosen
which your module could be a Python interface) in Release mode, or to avoid confusion with a system library :file:`spam.dll` to which your module
:file:`spam_d.dll` or :file:`spam_d.pyd` in Debug mode. could be a Python interface.
.. versionchanged:: 2.5
Previously, file names like :file:`spam.dll` (in release mode) or
:file:`spam_d.dll` (in debug mode) were also recognized.
Now your options are: Now your options are:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment