Skip to content

Commit a27e89b

Browse files
committed
#3711: .dll isn't a valid Python extension anymore.
1 parent 488a4f0 commit a27e89b

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Doc/extending/windows.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,14 @@ described here are distributed with the Python sources in the
102102
and it should call :cfunc:`Py_InitModule` with the string ``"spam"`` as its
103103
first argument (use the minimal :file:`example.c` in this directory as a guide).
104104
By convention, it lives in a file called :file:`spam.c` or :file:`spammodule.c`.
105-
The output file should be called :file:`spam.dll` or :file:`spam.pyd` (the
106-
latter is supported to avoid confusion with a system library :file:`spam.dll` to
107-
which your module could be a Python interface) in Release mode, or
108-
:file:`spam_d.dll` or :file:`spam_d.pyd` in Debug mode.
105+
The output file should be called :file:`spam.pyd` (in Release mode) or
106+
:file:`spam_d.pyd` (in Debug mode). The extension :file:`.pyd` was chosen
107+
to avoid confusion with a system library :file:`spam.dll` to which your module
108+
could be a Python interface.
109+
110+
.. versionchanged:: 2.5
111+
Previously, file names like :file:`spam.dll` (in release mode) or
112+
:file:`spam_d.dll` (in debug mode) were also recognized.
109113

110114
Now your options are:
111115

0 commit comments

Comments
 (0)