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

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