summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-03-19 17:30:24 (GMT)
committerGitHub <noreply@github.com>2021-03-19 17:30:24 (GMT)
commit148bc0584476d836b65d65e158354f15b56d27b5 (patch)
tree1c7b2646f5efb5fdcd81c0fd33a4f1fe6866dbc4 /Doc/whatsnew
parent28ad12f8fe889a741661eb99daacebd9243cc1ba (diff)
downloadcpython-148bc0584476d836b65d65e158354f15b56d27b5.zip
cpython-148bc0584476d836b65d65e158354f15b56d27b5.tar.gz
cpython-148bc0584476d836b65d65e158354f15b56d27b5.tar.bz2
Mention that code.co_lnotab is deprecated in what's new for 3.10. (#24902)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.10.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 02fe033..51b3331 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -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
------------------------------------