@@ -149,6 +149,14 @@ As well as complex arithmetic expressions:
149
149
~~~~~~^~~
150
150
ZeroDivisionError : division by zero
151
151
152
+ Additionally, the information used by the enhanced traceback feature
153
+ is made available via a general API, that can be used to correlate
154
+ :term: `bytecode ` :ref: `instructions <bytecodes >` with source code location.
155
+ This information can be retrieved using:
156
+
157
+ - The :meth: `codeobject.co_positions ` method in Python.
158
+ - The :c:func: `PyCode_Addr2Location ` function in the C API.
159
+
152
160
See :pep: `657 ` for more details. (Contributed by Pablo Galindo, Batuhan Taskaya
153
161
and Ammar Askar in :issue: `43950 `.)
154
162
@@ -162,23 +170,6 @@ and Ammar Askar in :issue:`43950`.)
162
170
or the :envvar: `PYTHONNODEBUGRANGES ` environment variable.
163
171
164
172
165
- Column information for code objects
166
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
167
-
168
- The information used by the enhanced traceback feature is made available as a
169
- general API that can be used to correlate bytecode instructions with source
170
- code. This information can be retrieved using:
171
-
172
- - The :meth: `codeobject.co_positions ` method in Python.
173
- - The :c:func: `PyCode_Addr2Location ` function in the C-API.
174
-
175
- The :option: `-X ` ``no_debug_ranges `` option and the environment variable
176
- :envvar: `PYTHONNODEBUGRANGES ` can be used to disable this feature.
177
-
178
- See :pep: `657 ` for more details. (Contributed by Pablo Galindo, Batuhan Taskaya
179
- and Ammar Askar in :issue: `43950 `.)
180
-
181
-
182
173
PEP 654: Exception Groups and ``except* ``
183
174
-----------------------------------------
184
175
0 commit comments