summaryrefslogtreecommitdiff
path: root/Doc/using
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-04-25 00:56:28 +0200
committerGitHub <noreply@github.com>2019-04-25 00:56:28 +0200
commitf4e4703e746067d6630410408d414b11003334d6 (patch)
treece2b2d0476b42da4c287dd686dbe499c93d92c33 /Doc/using
parent888f37bc2826d9ab2cbec6f153e7f58a34785c4a (diff)
downloadcpython-git-f4e4703e746067d6630410408d414b11003334d6.tar.gz
bpo-36465: Make release and debug ABI compatible (GH-12615)
Release build and debug build are now ABI compatible: the Py_DEBUG define no longer implies Py_TRACE_REFS define which introduces the only ABI incompatibility. A new "./configure --with-trace-refs" build option is now required to get Py_TRACE_REFS define which adds sys.getobjects() function and PYTHONDUMPREFS environment variable. Changes: * Add ./configure --with-trace-refs * Py_DEBUG no longer implies Py_TRACE_REFS
Diffstat (limited to 'Doc/using')
-rw-r--r--Doc/using/cmdline.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index 0574336cf3..fd47ce2ab5 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -922,15 +922,18 @@ conflict.
Debug-mode variables
~~~~~~~~~~~~~~~~~~~~
-Setting these variables only has an effect in a debug build of Python, that is,
-if Python was configured with the ``--with-pydebug`` build option.
+Setting these variables only has an effect in a debug build of Python.
.. envvar:: PYTHONTHREADDEBUG
If set, Python will print threading debug info.
+ Need Python configured with the ``--with-pydebug`` build option.
+
.. envvar:: PYTHONDUMPREFS
If set, Python will dump objects and reference counts still alive after
shutting down the interpreter.
+
+ Need Python configured with the ``--with-trace-refs`` build option.