@@ -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 `
@@ -151,7 +151,7 @@ to 1 and ``-bb`` sets :c:data:`Py_BytesWarningFlag` to 2.
151151 :c:member: `PyConfig.use_environment ` should be used instead, see
152152 :ref: `Python Initialization Configuration <init-config >`.
153153
154- Ignore all :envvar: `PYTHON* ` environment variables, e.g.
154+ Ignore all :envvar: `! PYTHON* ` environment variables, e.g.
155155 :envvar: `PYTHONPATH ` and :envvar: `PYTHONHOME `, that might be set.
156156
157157 Set by the :option: `-E ` and :option: `-I ` options.
@@ -224,7 +224,7 @@ to 1 and ``-bb`` sets :c:data:`Py_BytesWarningFlag` to 2.
224224 :ref: `Python Initialization Configuration <init-config >`.
225225
226226 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.
228228
229229 Set to ``1 `` if the :envvar: `PYTHONLEGACYWINDOWSSTDIO ` environment
230230 variable is set to a non-empty string.
@@ -393,7 +393,7 @@ Initializing and finalizing the interpreter
393393 the application.
394394
395395 **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
397397 when they depend on other objects (even functions) or modules. Dynamically
398398 loaded extension modules loaded by Python are not unloaded. Small amounts of
399399 memory allocated by the Python interpreter may not be freed (if you find a leak,
@@ -417,7 +417,7 @@ Process-wide parameters
417417=======================
418418
419419
420- .. c:function:: wchar * Py_GetProgramName()
420+ .. c:function:: wchar_t * Py_GetProgramName()
421421
422422 Return the program name set with :c:member:`PyConfig.program_name`, or the default.
423423 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
785785:ref:`lock-objects` in the child. When extending or embedding Python, there
786786is no way to inform Python of additional (non-Python) locks that need to be
787787acquired 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.
789789Additionally, when extending or embedding Python, calling :c:func:`fork`
790790directly rather than through :func:`os.fork` (and returning to or calling
791791into Python) may result in a deadlock by one of Python's internal locks
@@ -849,7 +849,7 @@ code, or when embedding the Python interpreter:
849849 .. note::
850850 Calling this function from a thread when the runtime is finalizing
851851 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
853853 check if the interpreter is in process of being finalized before calling
854854 this function to avoid unwanted termination.
855855
@@ -895,7 +895,7 @@ with sub-interpreters:
895895 .. note::
896896 Calling this function from a thread when the runtime is finalizing
897897 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
899899 check if the interpreter is in process of being finalized before calling
900900 this function to avoid unwanted termination.
901901
@@ -1177,7 +1177,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
11771177 .. note::
11781178 Calling this function from a thread when the runtime is finalizing
11791179 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
11811181 check if the interpreter is in process of being finalized before calling
11821182 this function to avoid unwanted termination.
11831183
0 commit comments