Skip to content

Commit 148bc05

Browse files
authored
Mention that code.co_lnotab is deprecated in what's new for 3.10. (#24902)
1 parent 28ad12f commit 148bc05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/whatsnew/3.10.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ Tracing events, with the correct line number, are generated for all lines of cod
175175
176176
The ``f_lineo`` attribute of frame objects will always contain the expected line number.
177177
178+
The ``co_lnotab`` attribute of code objects is deprecated and will be removed in 3.12.
179+
Code that needs to convert from offset to line number should use the new ``co_lines()`` method instead.
178180
179181
PEP 634: Structural Pattern Matching
180182
------------------------------------

0 commit comments

Comments
 (0)