]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Mention that code.co_lnotab is deprecated in what's new for 3.10. (#24902)
authorMark Shannon <mark@hotpy.org>
Fri, 19 Mar 2021 17:30:24 +0000 (17:30 +0000)
committerGitHub <noreply@github.com>
Fri, 19 Mar 2021 17:30:24 +0000 (17:30 +0000)
Doc/whatsnew/3.10.rst

index 02fe033f567751689e689454fffc1faf9077b080..51b3331be89e27ae91487718a0d1e3fca9cbb072 100644 (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
 ------------------------------------