mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-43950: Add option to opt-out of PEP-657 (GH-27023)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com> Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
This commit is contained in:
parent
3d3027c5fc
commit
4823d9a512
18 changed files with 276 additions and 64 deletions
|
|
@ -474,6 +474,12 @@ Miscellaneous options
|
|||
* ``-X warn_default_encoding`` issues a :class:`EncodingWarning` when the
|
||||
locale-specific default encoding is used for opening files.
|
||||
See also :envvar:`PYTHONWARNDEFAULTENCODING`.
|
||||
* ``-X no_debug_ranges`` disables the inclusion of the tables mapping extra
|
||||
location information (end line, start column offset and end column offset)
|
||||
to every instruction in code objects. This is useful when smaller code
|
||||
objects and pyc files are desired as well as supressing the extra visual
|
||||
location indicators when the interpreter displays tracebacks. See also
|
||||
:envvar:`PYTHONNODEBUGRANGES`.
|
||||
|
||||
It also allows passing arbitrary values and retrieving them through the
|
||||
:data:`sys._xoptions` dictionary.
|
||||
|
|
@ -509,6 +515,9 @@ Miscellaneous options
|
|||
.. deprecated-removed:: 3.9 3.10
|
||||
The ``-X oldparser`` option.
|
||||
|
||||
.. versionadded:: 3.11
|
||||
The ``-X no_debug_ranges`` option.
|
||||
|
||||
|
||||
Options you shouldn't use
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
@ -936,6 +945,17 @@ conflict.
|
|||
|
||||
.. versionadded:: 3.10
|
||||
|
||||
.. envvar:: PYTHONNODEBUGRANGES
|
||||
|
||||
If this variable is set, it disables the inclusion of the tables mapping
|
||||
extra location information (end line, start column offset and end column
|
||||
offset) to every instruction in code objects. This is useful when smaller
|
||||
code objects and pyc files are desired as well as supressing the extra visual
|
||||
location indicators when the interpreter displays tracebacks.
|
||||
|
||||
.. versionadded:: 3.11
|
||||
|
||||
|
||||
|
||||
Debug-mode variables
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue