summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-12-02 10:43:37 (GMT)
committerGitHub <noreply@github.com>2021-12-02 10:43:37 (GMT)
commita6c3b0faa1d55e36539caf19bd3bcf1dea12df84 (patch)
tree806b78a43fe43b90a490d8a0abcba622352768ac /Doc/c-api
parentcb2b3c8d3566ae46b3b8d0718019e1c98484589e (diff)
downloadcpython-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.rst9
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