Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Copy note to codeobject docs
  • Loading branch information
ammaraskar committed Jul 12, 2021
commit f69904fd5af2393e1180a5f3b104c184b84e4514
9 changes: 6 additions & 3 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1041,9 +1041,12 @@ Internal types
.. versionadded:: 3.11

.. note::
Storing positions may increase the disk usage of compiled Python
files and memory usage of the interpreter. This feature can be
disabled with the ``-X no_debug_ranges`` command line flag.
This feature requires storing column positions in code objects which may
result in a small increase of disk usage of compiled Python files or
interpreter memory usage. To avoid storing the extra information and/or
deactivate printing the extra traceback information, the
``-X no_debug_ranges`` command line flag or the ``PYTHONNODEBUGRANGES``
Comment thread
pablogsal marked this conversation as resolved.
Outdated
environment variable can be used.

.. _frame-objects:

Expand Down
9 changes: 5 additions & 4 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,12 @@ See :pep:`657` for more details. (Contributed by Pablo Galindo, Batuhan Taskaya
and Ammar Askar in :issue:`43950`.)

.. note::

This feature requires storing column positions in code objects which may
result in a small increase of disk usage of compiled Python files or interpreter memory usage.
To avoid storing the extra information or to deactivate printing the extra traceback information,
the feature can be fully disabled with the ``-X no_debug_ranges`` command line flag or the ``PYTHONNODEBUGRANGES`` environment variable.
result in a small increase of disk usage of compiled Python files or
interpreter memory usage. To avoid storing the extra information and/or
deactivate printing the extra traceback information, the
``-X no_debug_ranges`` command line flag or the ``PYTHONNODEBUGRANGES``
Comment thread
pablogsal marked this conversation as resolved.
Outdated
environment variable can be used.

Column information for code objects
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down