Mention that code.co_lnotab is deprecated in what's new for 3.10. (#24902)

This commit is contained in:
Mark Shannon 2021-03-19 17:30:24 +00:00 committed by GitHub
parent 28ad12f8fe
commit 148bc05844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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 ``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
------------------------------------