@@ -25,7 +25,7 @@ The following functions can be safely called before Python is initialized:
25
25
26
26
* :c:func: `PyImport_AppendInittab `
27
27
* :c:func: `PyImport_ExtendInittab `
28
- * :c:func: `PyInitFrozenExtensions `
28
+ * :c:func: `! PyInitFrozenExtensions `
29
29
* :c:func: `PyMem_SetAllocator `
30
30
* :c:func: `PyMem_SetupDebugHooks `
31
31
* :c:func: `PyObject_SetArenaAllocator `
@@ -151,7 +151,7 @@ to 1 and ``-bb`` sets :c:data:`Py_BytesWarningFlag` to 2.
151
151
:c:member: `PyConfig.use_environment ` should be used instead, see
152
152
:ref: `Python Initialization Configuration <init-config >`.
153
153
154
- Ignore all :envvar: `PYTHON* ` environment variables, e.g.
154
+ Ignore all :envvar: `! PYTHON* ` environment variables, e.g.
155
155
:envvar: `PYTHONPATH ` and :envvar: `PYTHONHOME `, that might be set.
156
156
157
157
Set by the :option: `-E ` and :option: `-I ` options.
@@ -224,7 +224,7 @@ to 1 and ``-bb`` sets :c:data:`Py_BytesWarningFlag` to 2.
224
224
:ref: `Python Initialization Configuration <init-config >`.
225
225
226
226
If the flag is non-zero, use :class: `io.FileIO ` instead of
227
- :class: `WindowsConsoleIO ` for :mod: `sys ` standard streams.
227
+ :class: `!io._WindowsConsoleIO ` for :mod: `sys ` standard streams.
228
228
229
229
Set to ``1 `` if the :envvar: `PYTHONLEGACYWINDOWSSTDIO ` environment
230
230
variable is set to a non-empty string.
@@ -393,7 +393,7 @@ Initializing and finalizing the interpreter
393
393
the application.
394
394
395
395
**Bugs and caveats:** The destruction of modules and objects in modules is done
396
- in random order; this may cause destructors (:meth: `__del__ ` methods) to fail
396
+ in random order; this may cause destructors (:meth: `~object. __del__ ` methods) to fail
397
397
when they depend on other objects (even functions) or modules. Dynamically
398
398
loaded extension modules loaded by Python are not unloaded. Small amounts of
399
399
memory allocated by the Python interpreter may not be freed (if you find a leak,
@@ -417,7 +417,7 @@ Process-wide parameters
417
417
=======================
418
418
419
419
420
- .. c:function:: wchar * Py_GetProgramName()
420
+ .. c:function:: wchar_t * Py_GetProgramName()
421
421
422
422
Return the program name set with :c:member:`PyConfig.program_name`, or the default.
423
423
The returned string points into static storage; the caller should not modify its
@@ -785,7 +785,7 @@ the fork, and releasing them afterwards. In addition, it resets any
785
785
:ref:`lock-objects` in the child. When extending or embedding Python, there
786
786
is no way to inform Python of additional (non-Python) locks that need to be
787
787
acquired before or reset after a fork. OS facilities such as
788
- :c:func:`pthread_atfork` would need to be used to accomplish the same thing.
788
+ :c:func:`! pthread_atfork` would need to be used to accomplish the same thing.
789
789
Additionally, when extending or embedding Python, calling :c:func:`fork`
790
790
directly rather than through :func:`os.fork` (and returning to or calling
791
791
into Python) may result in a deadlock by one of Python's internal locks
@@ -849,7 +849,7 @@ code, or when embedding the Python interpreter:
849
849
.. note::
850
850
Calling this function from a thread when the runtime is finalizing
851
851
will terminate the thread, even if the thread was not created by Python.
852
- You can use :c:func:`_Py_IsFinalizing` or :func:`sys.is_finalizing` to
852
+ You can use :c:func:`! _Py_IsFinalizing` or :func:`sys.is_finalizing` to
853
853
check if the interpreter is in process of being finalized before calling
854
854
this function to avoid unwanted termination.
855
855
@@ -895,7 +895,7 @@ with sub-interpreters:
895
895
.. note::
896
896
Calling this function from a thread when the runtime is finalizing
897
897
will terminate the thread, even if the thread was not created by Python.
898
- You can use :c:func:`_Py_IsFinalizing` or :func:`sys.is_finalizing` to
898
+ You can use :c:func:`! _Py_IsFinalizing` or :func:`sys.is_finalizing` to
899
899
check if the interpreter is in process of being finalized before calling
900
900
this function to avoid unwanted termination.
901
901
@@ -1177,7 +1177,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
1177
1177
.. note::
1178
1178
Calling this function from a thread when the runtime is finalizing
1179
1179
will terminate the thread, even if the thread was not created by Python.
1180
- You can use :c:func:`_Py_IsFinalizing` or :func:`sys.is_finalizing` to
1180
+ You can use :c:func:`! _Py_IsFinalizing` or :func:`sys.is_finalizing` to
1181
1181
check if the interpreter is in process of being finalized before calling
1182
1182
this function to avoid unwanted termination.
1183
1183
0 commit comments