Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Mention PYTHON_PRESITE needs a pydebug build
  • Loading branch information
ambv committed Oct 13, 2023
commit 3d3f5d36902a296d4bc232a87301bf6babfd2d35
8 changes: 4 additions & 4 deletions Doc/c-api/init_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ PyConfig

Set to ``1`` by the :envvar:`PYTHONDUMPREFS` environment variable.

Need a special build of Python with the ``Py_TRACE_REFS`` macro defined:
Needs a special build of Python with the ``Py_TRACE_REFS`` macro defined:
see the :option:`configure --with-trace-refs option <--with-trace-refs>`.

Default: ``0``.
Expand Down Expand Up @@ -1048,7 +1048,7 @@ PyConfig
Incremented by the :option:`-d` command line option. Set to the
:envvar:`PYTHONDEBUG` environment variable value.

Need a :ref:`debug build of Python <debug-build>` (the ``Py_DEBUG`` macro
Needs a :ref:`debug build of Python <debug-build>` (the ``Py_DEBUG`` macro
must be defined).

Default: ``0``.
Expand Down Expand Up @@ -1153,7 +1153,7 @@ PyConfig
option and the :envvar:`PYTHON_PRESITE` environment variable.
The command-line option takes precedence.

Need a :ref:`debug build of Python <debug-build>` (the ``Py_DEBUG`` macro
Needs a :ref:`debug build of Python <debug-build>` (the ``Py_DEBUG`` macro
must be defined).

Default: ``NULL``.
Expand All @@ -1164,7 +1164,7 @@ PyConfig

Set to ``1`` by :option:`-X showrefcount <-X>` command line option.

Need a :ref:`debug build of Python <debug-build>` (the ``Py_REF_DEBUG``
Needs a :ref:`debug build of Python <debug-build>` (the ``Py_REF_DEBUG``
macro must be defined).

Default: ``0``.
Expand Down
6 changes: 4 additions & 2 deletions Doc/using/cmdline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1098,15 +1098,15 @@ Debug-mode variables
If set, Python will dump objects and reference counts still alive after
shutting down the interpreter.

Need Python configured with the :option:`--with-trace-refs` build option.
Needs Python configured with the :option:`--with-trace-refs` build option.

.. envvar:: PYTHONDUMPREFSFILE

If set, Python will dump objects and reference counts still alive
after shutting down the interpreter into a file under the path given
as the value to this environment variable.

Need Python configured with the :option:`--with-trace-refs` build option.
Needs Python configured with the :option:`--with-trace-refs` build option.

.. versionadded:: 3.11

Expand All @@ -1120,4 +1120,6 @@ Debug-mode variables
See also the :option:`-X presite <-X>` command-line option,
which takes precedence over this variable.

Needs Python configured with the :option:`--with-pydebug` build option.

.. versionadded:: 3.13