@@ -625,7 +625,7 @@ Process-wide parameters
625625 returned string points into static storage; the caller should not modify its
626626 value. This corresponds to the :makevar: `prefix ` variable in the top-level
627627 :file: `Makefile ` and the :option: `--prefix ` argument to the :program: `configure `
628- script at build time. The value is available to Python code as ``sys.prefix ``.
628+ script at build time. The value is available to Python code as ``sys.base_prefix ``.
629629 It is only useful on Unix. See also the next function.
630630
631631 This function should not be called before :c:func: `Py_Initialize `, otherwise
@@ -635,7 +635,8 @@ Process-wide parameters
635635 It now returns ``NULL `` if called before :c:func: `Py_Initialize `.
636636
637637 .. deprecated-removed :: 3.13 3.15
638- Get :data: `sys.prefix ` instead.
638+ Get :data: `sys.base_prefix ` instead, or :data: `sys.prefix ` if
639+ :ref: `virtual environments <venv-def >` need to be handled.
639640
640641
641642.. c :function :: wchar_t * Py_GetExecPrefix ()
@@ -648,7 +649,8 @@ Process-wide parameters
648649 should not modify its value. This corresponds to the :makevar: `exec_prefix `
649650 variable in the top-level :file: `Makefile ` and the ``--exec-prefix ``
650651 argument to the :program: `configure ` script at build time. The value is
651- available to Python code as ``sys.exec_prefix ``. It is only useful on Unix.
652+ available to Python code as ``sys.base_exec_prefix ``. It is only useful on
653+ Unix.
652654
653655 Background: The exec-prefix differs from the prefix when platform dependent
654656 files (such as executables and shared libraries) are installed in a different
@@ -679,7 +681,8 @@ Process-wide parameters
679681 It now returns ``NULL`` if called before :c:func:`Py_Initialize`.
680682
681683 .. deprecated-removed:: 3.13 3.15
682- Get :data:`sys.exec_prefix` instead.
684+ Get :data:`sys.base_exec_prefix` instead, or :data:`sys.exec_prefix` if
685+ :ref:`virtual environments <venv-def>` need to be handled.
683686
684687
685688.. c:function:: wchar_t* Py_GetProgramFullPath()
@@ -1195,7 +1198,7 @@ code, or when embedding the Python interpreter:
11951198 created by Python. Refer to
11961199 :ref:`cautions-regarding-runtime-finalization` for more details.
11971200
1198- .. versionchanged:: next
1201+ .. versionchanged:: 3.14
11991202 Hangs the current thread, rather than terminating it, if called while the
12001203 interpreter is finalizing.
12011204
@@ -1257,7 +1260,7 @@ with sub-interpreters:
12571260 created by Python. Refer to
12581261 :ref:`cautions-regarding-runtime-finalization` for more details.
12591262
1260- .. versionchanged:: next
1263+ .. versionchanged:: 3.14
12611264 Hangs the current thread, rather than terminating it, if called while the
12621265 interpreter is finalizing.
12631266
@@ -1547,7 +1550,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
15471550 :c:func:`Py_END_ALLOW_THREADS`, and :c:func:`PyGILState_Ensure`,
15481551 and terminate the current thread if called while the interpreter is finalizing.
15491552
1550- .. versionchanged:: next
1553+ .. versionchanged:: 3.14
15511554 Hangs the current thread, rather than terminating it, if called while the
15521555 interpreter is finalizing.
15531556
@@ -2418,7 +2421,7 @@ Example usage::
24182421
24192422In the above example, :c:macro:`Py_SETREF` calls :c:macro:`Py_DECREF`, which
24202423can call arbitrary code through an object's deallocation function. The critical
2421- section API avoids potentital deadlocks due to reentrancy and lock ordering
2424+ section API avoids potential deadlocks due to reentrancy and lock ordering
24222425by allowing the runtime to temporarily suspend the critical section if the
24232426code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
24242427
0 commit comments