diff options
author | Victor Stinner <vstinner@python.org> | 2021-12-02 10:43:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 10:43:37 (GMT) |
commit | a6c3b0faa1d55e36539caf19bd3bcf1dea12df84 (patch) | |
tree | 806b78a43fe43b90a490d8a0abcba622352768ac /Doc/c-api | |
parent | cb2b3c8d3566ae46b3b8d0718019e1c98484589e (diff) | |
download | cpython-a6c3b0faa1d55e36539caf19bd3bcf1dea12df84.zip cpython-a6c3b0faa1d55e36539caf19bd3bcf1dea12df84.tar.gz cpython-a6c3b0faa1d55e36539caf19bd3bcf1dea12df84.tar.bz2 |
bpo-45954: Rename PyConfig.no_debug_ranges to code_debug_ranges (GH-29886)
Rename PyConfig.no_debug_ranges to PyConfig.code_debug_ranges and
invert the value.
Document -X no_debug_ranges and PYTHONNODEBUGRANGES env var in
PyConfig.code_debug_ranges documentation.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/init_config.rst | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/c-api/init_config.rst b/Doc/c-api/init_config.rst index 989660c..3642a8b 100644 --- a/Doc/c-api/init_config.rst +++ b/Doc/c-api/init_config.rst @@ -596,13 +596,16 @@ PyConfig .. versionadded:: 3.10 - .. c:member:: int no_debug_ranges + .. c:member:: int code_debug_ranges - If equals to ``1``, disables the inclusion of the end line and column + If equals to ``0``, disables the inclusion of the end line and column mappings in code objects. Also disables traceback printing carets to specific error locations. - Default: ``0``. + Set to ``0`` by the :envvar:`PYTHONNODEBUGRANGES` environment variable + and by the :option:`-X no_debug_ranges <-X>` command line option. + + Default: ``1``. .. versionadded:: 3.11 |