mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
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.
This commit is contained in:
parent
cb2b3c8d35
commit
a6c3b0faa1
8 changed files with 22 additions and 18 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue