summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2018-10-06-14-02-51.bpo-34876.oBKBA4.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-10-06-14-02-51.bpo-34876.oBKBA4.rst b/Misc/NEWS.d/next/Core and Builtins/2018-10-06-14-02-51.bpo-34876.oBKBA4.rst
new file mode 100644
index 0000000..4275c02
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2018-10-06-14-02-51.bpo-34876.oBKBA4.rst
@@ -0,0 +1,6 @@
+The *lineno* and *col_offset* attributes of the AST for decorated function
+and class refer now to the position of the corresponding ``def``, ``async
+def`` and ``class`` instead of the position of the first decorator. This
+leads to more correct line reporting in tracing. This is the only case when
+the position of child AST nodes can preceed the position of the parent AST
+node.