diff options
author | Victor Stinner <vstinner@python.org> | 2022-05-24 21:23:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 21:23:01 (GMT) |
commit | c7667a2d353cebb0287d29a3ead29b2107425b96 (patch) | |
tree | c96827d5bc5ef93bd1200ba0b79e01fb725ebc16 /Doc/using/cmdline.rst | |
parent | fbd11f3edd6d2034774d802e048261e613ffcbf5 (diff) | |
download | cpython-c7667a2d353cebb0287d29a3ead29b2107425b96.zip cpython-c7667a2d353cebb0287d29a3ead29b2107425b96.tar.gz cpython-c7667a2d353cebb0287d29a3ead29b2107425b96.tar.bz2 |
gh-93103: Enhance PyConfig.parser_debug documentation (#93186)
Document that -d option and PYTHONDEBUG env var require a debug
build of Python. Also mention them in the debug build documentation.
Diffstat (limited to 'Doc/using/cmdline.rst')
-rw-r--r-- | Doc/using/cmdline.rst | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst index bc54ed8..07c05a9 100644 --- a/Doc/using/cmdline.rst +++ b/Doc/using/cmdline.rst @@ -248,8 +248,11 @@ Miscellaneous options .. cmdoption:: -d - Turn on parser debugging output (for expert only, depending on compilation - options). See also :envvar:`PYTHONDEBUG`. + Turn on parser debugging output (for expert only). + See also the :envvar:`PYTHONDEBUG` environment variable. + + This option requires a :ref:`debug build of Python <debug-build>`, otherwise + it's ignored. .. cmdoption:: -E @@ -660,6 +663,9 @@ conflict. :option:`-d` option. If set to an integer, it is equivalent to specifying :option:`-d` multiple times. + This environment variable requires a :ref:`debug build of Python + <debug-build>`, otherwise it's ignored. + .. envvar:: PYTHONINSPECT |