@@ -88,7 +88,7 @@ Enhanced error locations in tracebacks
88
88
--------------------------------------
89
89
90
90
When printing tracebacks, the interpreter will now point to the exact expression
91
- that caused the error instead of just the line. For example:
91
+ that caused the error, instead of just the line. For example:
92
92
93
93
.. code-block :: python
94
94
@@ -101,9 +101,9 @@ that caused the error instead of just the line. For example:
101
101
^^^^^^^^^
102
102
AttributeError : ' NoneType' object has no attribute ' x'
103
103
104
- Previous versions of the interpreter would point to just the line making it
104
+ Previous versions of the interpreter would point to just the line, making it
105
105
ambiguous which object was ``None ``. These enhanced errors can also be helpful
106
- when dealing with deeply nested dictionary objects and multiple function calls,
106
+ when dealing with deeply nested :class: ` dict ` objects and multiple function calls:
107
107
108
108
.. code-block :: python
109
109
@@ -121,7 +121,7 @@ when dealing with deeply nested dictionary objects and multiple function calls,
121
121
~~~~~~~~~~~~~~~~~~^^^^^
122
122
TypeError : ' NoneType' object is not subscriptable
123
123
124
- as well as complex arithmetic expressions:
124
+ As well as complex arithmetic expressions:
125
125
126
126
.. code-block :: python
127
127
@@ -135,12 +135,14 @@ See :pep:`657` for more details. (Contributed by Pablo Galindo, Batuhan Taskaya
135
135
and Ammar Askar in :issue: `43950 `.)
136
136
137
137
.. note ::
138
- This feature requires storing column positions in code objects which may
139
- result in a small increase of disk usage of compiled Python files or
140
- interpreter memory usage. To avoid storing the extra information and/or
141
- deactivate printing the extra traceback information, the
142
- :option: `-X ` ``no_debug_ranges `` command line flag or the :envvar: `PYTHONNODEBUGRANGES `
143
- environment variable can be used.
138
+ This feature requires storing column positions in :ref: `codeobjects `,
139
+ which may result in a small increase in interpreter memory usage
140
+ and disk usage for compiled Python files.
141
+ To avoid storing the extra information
142
+ and deactivate printing the extra traceback information,
143
+ use the :option: `-X no_debug_ranges <-X> ` command line option
144
+ or the :envvar: `PYTHONNODEBUGRANGES ` environment variable.
145
+
144
146
145
147
Column information for code objects
146
148
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments