File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3043,7 +3043,7 @@ Changes to Python's build process and to the C API include:
30433043
30443044* Importing modules simultaneously in two different threads no longer
30453045 deadlocks; it will now raise an :exc: `ImportError `. A new API
3046- function, :c:func: `PyImport_ImportModuleNoBlock `, will look for a
3046+ function, :c:func: `! PyImport_ImportModuleNoBlock `, will look for a
30473047 module in ``sys.modules `` first, then try to import it after
30483048 acquiring an import lock. If the import lock is held by another
30493049 thread, an :exc: `ImportError ` is raised.
Original file line number Diff line number Diff line change @@ -870,7 +870,7 @@ to the C API.
870870* :c:func: `!PyNumber_Coerce `, :c:func: `!PyNumber_CoerceEx `,
871871 :c:func: `!PyMember_Get `, and :c:func: `!PyMember_Set ` C APIs are removed.
872872
873- * New C API :c:func: `PyImport_ImportModuleNoBlock `, works like
873+ * New C API :c:func: `! PyImport_ImportModuleNoBlock `, works like
874874 :c:func: `PyImport_ImportModule ` but won't block on the import lock
875875 (returning an error instead).
876876
Original file line number Diff line number Diff line change @@ -2499,7 +2499,7 @@ Deprecated C APIs
24992499 which return a :term: `borrowed reference `.
25002500 (Soft deprecated as part of :pep: `667 `.)
25012501
2502- * Deprecate the :c:func: `PyImport_ImportModuleNoBlock ` function,
2502+ * Deprecate the :c:func: `! PyImport_ImportModuleNoBlock ` function,
25032503 which is just an alias to :c:func: `PyImport_ImportModule ` since Python 3.3.
25042504 (Contributed by Victor Stinner in :gh: `105396 `.)
25052505
Original file line number Diff line number Diff line change @@ -829,7 +829,7 @@ Previous versions of CPython have always relied on a global import lock.
829829This led to unexpected annoyances, such as deadlocks when importing a module
830830would trigger code execution in a different thread as a side-effect.
831831Clumsy workarounds were sometimes employed, such as the
832- :c:func: `PyImport_ImportModuleNoBlock ` C API function.
832+ :c:func: `! PyImport_ImportModuleNoBlock ` C API function.
833833
834834In Python 3.3, importing a module takes a per-module lock. This correctly
835835serializes importation of a given module from multiple threads (preventing
Original file line number Diff line number Diff line change @@ -1161,7 +1161,7 @@ no-op now.
11611161.. nonce: Lq2_gR
11621162.. section: C API
11631163
1164- Replaced deprecated usage of :c:func: `PyImport_ImportModuleNoBlock ` with
1164+ Replaced deprecated usage of :c:func: `! PyImport_ImportModuleNoBlock ` with
11651165:c:func: `PyImport_ImportModule ` in stdlib modules. Patch by Kumar Aditya.
11661166
11671167..
Original file line number Diff line number Diff line change @@ -6538,7 +6538,7 @@ to hide implementation details. Patch by Victor Stinner.
65386538.. nonce: FQJG5B
65396539.. section: C API
65406540
6541- Deprecate the :c:func: `PyImport_ImportModuleNoBlock ` function which is just
6541+ Deprecate the :c:func: `! PyImport_ImportModuleNoBlock ` function which is just
65426542an alias to :c:func: `PyImport_ImportModule ` since Python 3.3. Patch by
65436543Victor Stinner.
65446544
You can’t perform that action at this time.
0 commit comments