@@ -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 `
@@ -157,7 +157,7 @@ to 1 and ``-bb`` sets :c:data:`Py_BytesWarningFlag` to 2.
157
157
:c:member: `PyConfig.use_environment ` should be used instead, see
158
158
:ref: `Python Initialization Configuration <init-config >`.
159
159
160
- Ignore all :envvar: `PYTHON* ` environment variables, e.g.
160
+ Ignore all :envvar: `! PYTHON* ` environment variables, e.g.
161
161
:envvar: `PYTHONPATH ` and :envvar: `PYTHONHOME `, that might be set.
162
162
163
163
Set by the :option: `-E ` and :option: `-I ` options.
@@ -230,7 +230,7 @@ to 1 and ``-bb`` sets :c:data:`Py_BytesWarningFlag` to 2.
230
230
:ref: `Python Initialization Configuration <init-config >`.
231
231
232
232
If the flag is non-zero, use :class: `io.FileIO ` instead of
233
- :class: `WindowsConsoleIO ` for :mod: `sys ` standard streams.
233
+ :class: `!io._WindowsConsoleIO ` for :mod: `sys ` standard streams.
234
234
235
235
Set to ``1 `` if the :envvar: `PYTHONLEGACYWINDOWSSTDIO ` environment
236
236
variable is set to a non-empty string.
@@ -401,7 +401,7 @@ Initializing and finalizing the interpreter
401
401
the application.
402
402
403
403
**Bugs and caveats:** The destruction of modules and objects in modules is done
404
- in random order; this may cause destructors (:meth: `__del__ ` methods) to fail
404
+ in random order; this may cause destructors (:meth: `~object. __del__ ` methods) to fail
405
405
when they depend on other objects (even functions) or modules. Dynamically
406
406
loaded extension modules loaded by Python are not unloaded. Small amounts of
407
407
memory allocated by the Python interpreter may not be freed (if you find a leak,
@@ -485,12 +485,12 @@ Process-wide parameters
485
485
interpreter will change the contents of this storage.
486
486
487
487
Use :c:func:`Py_DecodeLocale` to decode a bytes string to get a
488
- :c:expr:`wchar_ *` string.
488
+ :c:expr:`wchar_t *` string.
489
489
490
490
.. deprecated:: 3.11
491
491
492
492
493
- .. c:function:: wchar * Py_GetProgramName()
493
+ .. c:function:: wchar_t * Py_GetProgramName()
494
494
495
495
.. index:: single: Py_SetProgramName()
496
496
@@ -981,7 +981,7 @@ the fork, and releasing them afterwards. In addition, it resets any
981
981
:ref:`lock-objects` in the child. When extending or embedding Python, there
982
982
is no way to inform Python of additional (non-Python) locks that need to be
983
983
acquired before or reset after a fork. OS facilities such as
984
- :c:func:`pthread_atfork` would need to be used to accomplish the same thing.
984
+ :c:func:`! pthread_atfork` would need to be used to accomplish the same thing.
985
985
Additionally, when extending or embedding Python, calling :c:func:`fork`
986
986
directly rather than through :func:`os.fork` (and returning to or calling
987
987
into Python) may result in a deadlock by one of Python's internal locks
@@ -1087,7 +1087,7 @@ code, or when embedding the Python interpreter:
1087
1087
.. note::
1088
1088
Calling this function from a thread when the runtime is finalizing
1089
1089
will terminate the thread, even if the thread was not created by Python.
1090
- You can use :c:func:`_Py_IsFinalizing` or :func:`sys.is_finalizing` to
1090
+ You can use :c:func:`! _Py_IsFinalizing` or :func:`sys.is_finalizing` to
1091
1091
check if the interpreter is in process of being finalized before calling
1092
1092
this function to avoid unwanted termination.
1093
1093
@@ -1133,7 +1133,7 @@ with sub-interpreters:
1133
1133
.. note::
1134
1134
Calling this function from a thread when the runtime is finalizing
1135
1135
will terminate the thread, even if the thread was not created by Python.
1136
- You can use :c:func:`_Py_IsFinalizing` or :func:`sys.is_finalizing` to
1136
+ You can use :c:func:`! _Py_IsFinalizing` or :func:`sys.is_finalizing` to
1137
1137
check if the interpreter is in process of being finalized before calling
1138
1138
this function to avoid unwanted termination.
1139
1139
@@ -1415,7 +1415,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
1415
1415
.. note ::
1416
1416
Calling this function from a thread when the runtime is finalizing
1417
1417
will terminate the thread, even if the thread was not created by Python.
1418
- You can use :c:func: `_Py_IsFinalizing ` or :func: `sys.is_finalizing ` to
1418
+ You can use :c:func: `! _Py_IsFinalizing ` or :func: `sys.is_finalizing ` to
1419
1419
check if the interpreter is in process of being finalized before calling
1420
1420
this function to avoid unwanted termination.
1421
1421
0 commit comments