]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add PEP 626 to what's new in 3.10. (#24892)
authorMark Shannon <mark@hotpy.org>
Tue, 16 Mar 2021 13:43:58 +0000 (13:43 +0000)
committerGitHub <noreply@github.com>
Tue, 16 Mar 2021 13:43:58 +0000 (13:43 +0000)
Doc/whatsnew/3.10.rst

index c4c282e5a04eae90872ce043dccd9e4bd294ef21..00b0f985e33868668397f5d10299d4c14733a027 100644 (file)
@@ -167,6 +167,14 @@ These improvements are inspired by previous work in the PyPy interpreter.
 (Contributed by Pablo Galindo in :issue:`42864` and Batuhan Taskaya in
 :issue:`40176`.)
 
+PEP 626: Precise line numbers for debugging and other tools
+-----------------------------------------------------------
+
+PEP 626 brings more precise and reliable line numbers for debugging, profiling and coverage tools.
+Tracing events, with the correct line number, are generated for all lines of code executed and only for lines of code that are executed.
+
+The ``f_lineo`` attribute of frame objects will always contain the expected line number.
+
 
 PEP 634: Structural Pattern Matching
 ------------------------------------