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.
This commit is contained in:
Victor Stinner 2022-05-24 23:23:01 +02:00 committed by GitHub
parent fbd11f3edd
commit c7667a2d35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 2 deletions

View file

@ -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