@@ -25,7 +25,7 @@ The following functions can be safely called before Python is initialized:
2525
2626 * :c:func: `PyImport_AppendInittab `
2727 * :c:func: `PyImport_ExtendInittab `
28- * :c:func: `PyInitFrozenExtensions `
28+ * :c:func: `! PyInitFrozenExtensions `
2929 * :c:func: `PyMem_SetAllocator `
3030 * :c:func: `PyMem_SetupDebugHooks `
3131 * :c:func: `PyObject_SetArenaAllocator `
@@ -122,7 +122,7 @@ to 1 and ``-bb`` sets :c:data:`Py_BytesWarningFlag` to 2.
122122
123123.. c :var :: int Py_IgnoreEnvironmentFlag
124124
125- Ignore all :envvar: `PYTHON* ` environment variables, e.g.
125+ Ignore all :envvar: `! PYTHON* ` environment variables, e.g.
126126 :envvar: `PYTHONPATH ` and :envvar: `PYTHONHOME `, that might be set.
127127
128128 Set by the :option: `-E ` and :option: `-I ` options.
@@ -165,7 +165,7 @@ to 1 and ``-bb`` sets :c:data:`Py_BytesWarningFlag` to 2.
165165.. c :var :: int Py_LegacyWindowsStdioFlag
166166
167167 If the flag is non-zero, use :class: `io.FileIO ` instead of
168- :class: `WindowsConsoleIO ` for :mod: `sys ` standard streams.
168+ :class: `!io._WindowsConsoleIO ` for :mod: `sys ` standard streams.
169169
170170 Set to ``1 `` if the :envvar: `PYTHONLEGACYWINDOWSSTDIO ` environment
171171 variable is set to a non-empty string.
@@ -292,7 +292,7 @@ Initializing and finalizing the interpreter
292292 the application.
293293
294294 **Bugs and caveats:** The destruction of modules and objects in modules is done
295- in random order; this may cause destructors (:meth: `__del__ ` methods) to fail
295+ in random order; this may cause destructors (:meth: `~object. __del__ ` methods) to fail
296296 when they depend on other objects (even functions) or modules. Dynamically
297297 loaded extension modules loaded by Python are not unloaded. Small amounts of
298298 memory allocated by the Python interpreter may not be freed (if you find a leak,
@@ -381,7 +381,7 @@ Process-wide parameters
381381 .. deprecated:: 3.11
382382
383383
384- .. c:function:: wchar * Py_GetProgramName()
384+ .. c:function:: wchar_t * Py_GetProgramName()
385385
386386 .. index:: single: Py_SetProgramName()
387387
@@ -872,7 +872,7 @@ the fork, and releasing them afterwards. In addition, it resets any
872872:ref:`lock-objects` in the child. When extending or embedding Python, there
873873is no way to inform Python of additional (non-Python) locks that need to be
874874acquired before or reset after a fork. OS facilities such as
875- :c:func:`pthread_atfork` would need to be used to accomplish the same thing.
875+ :c:func:`! pthread_atfork` would need to be used to accomplish the same thing.
876876Additionally, when extending or embedding Python, calling :c:func:`fork`
877877directly rather than through :func:`os.fork` (and returning to or calling
878878into Python) may result in a deadlock by one of Python's internal locks
@@ -978,7 +978,7 @@ code, or when embedding the Python interpreter:
978978 .. note::
979979 Calling this function from a thread when the runtime is finalizing
980980 will terminate the thread, even if the thread was not created by Python.
981- You can use :c:func:`_Py_IsFinalizing` or :func:`sys.is_finalizing` to
981+ You can use :c:func:`! _Py_IsFinalizing` or :func:`sys.is_finalizing` to
982982 check if the interpreter is in process of being finalized before calling
983983 this function to avoid unwanted termination.
984984
@@ -1024,7 +1024,7 @@ with sub-interpreters:
10241024 .. note::
10251025 Calling this function from a thread when the runtime is finalizing
10261026 will terminate the thread, even if the thread was not created by Python.
1027- You can use :c:func:`_Py_IsFinalizing` or :func:`sys.is_finalizing` to
1027+ You can use :c:func:`! _Py_IsFinalizing` or :func:`sys.is_finalizing` to
10281028 check if the interpreter is in process of being finalized before calling
10291029 this function to avoid unwanted termination.
10301030
@@ -1306,7 +1306,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
13061306 .. note ::
13071307 Calling this function from a thread when the runtime is finalizing
13081308 will terminate the thread, even if the thread was not created by Python.
1309- You can use :c:func: `_Py_IsFinalizing ` or :func: `sys.is_finalizing ` to
1309+ You can use :c:func: `! _Py_IsFinalizing ` or :func: `sys.is_finalizing ` to
13101310 check if the interpreter is in process of being finalized before calling
13111311 this function to avoid unwanted termination.
13121312
0 commit comments