Commit 8e41d0c6 authored by Stefan Behnel's avatar Stefan Behnel

clarify in changelog what "patching stdlib modules" means

parent 2c95f93d
...@@ -23,16 +23,16 @@ Features added ...@@ -23,16 +23,16 @@ Features added
* When generators are used in a Cython module and the module imports the * When generators are used in a Cython module and the module imports the
modules "inspect" and/or "asyncio", Cython enables interoperability by modules "inspect" and/or "asyncio", Cython enables interoperability by
patching these modules to recognise Cython's internal generator type. patching these modules during the import to recognise Cython's internal
This can be disabled by C compiling the module with generator type. This can be disabled by C compiling the module with
"-D CYTHON_PATCH_ASYNCIO=0" or "-D CYTHON_PATCH_INSPECT=0" "-D CYTHON_PATCH_ASYNCIO=0" or "-D CYTHON_PATCH_INSPECT=0"
* When generators are used in a Cython module, the new ``Generator`` ABC * When generators are used in a Cython module, the new ``Generator`` ABC
will be patched into the ``collections`` or ``collections.abc`` will be patched into the ``collections`` or ``collections.abc``
stdlib module if it is not there yet. It allows type checks for stdlib module at import time if it is not there yet. It allows type
``isinstance(obj, Generator)`` which includes both Python generators checks for ``isinstance(obj, Generator)`` which includes both Python
and Cython generators. This can be disabled by C compiling the module generators and Cython generators. This can be disabled by C compiling the
with "-D CYTHON_PATCH_ABC=0". See https://bugs.python.org/issue24018 module with "-D CYTHON_PATCH_ABC=0". See https://bugs.python.org/issue24018
* Adding/subtracting/dividing/modulus and equality comparisons with * Adding/subtracting/dividing/modulus and equality comparisons with
constant Python floats and small integers are faster. constant Python floats and small integers are faster.
......
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