mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Mention that code.co_lnotab is deprecated in what's new for 3.10. (#24902)
This commit is contained in:
parent
28ad12f8fe
commit
148bc05844
1 changed files with 2 additions and 0 deletions
|
@ -175,6 +175,8 @@ Tracing events, with the correct line number, are generated for all lines of cod
|
||||||
|
|
||||||
The ``f_lineo`` attribute of frame objects will always contain the expected line number.
|
The ``f_lineo`` attribute of frame objects will always contain the expected line number.
|
||||||
|
|
||||||
|
The ``co_lnotab`` attribute of code objects is deprecated and will be removed in 3.12.
|
||||||
|
Code that needs to convert from offset to line number should use the new ``co_lines()`` method instead.
|
||||||
|
|
||||||
PEP 634: Structural Pattern Matching
|
PEP 634: Structural Pattern Matching
|
||||||
------------------------------------
|
------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue