Browse Source
bpo-43798: Add source location attributes to alias (GH-25324)
bpo-43798: Add source location attributes to alias (GH-25324)
* Add source location attributes to alias. * Move alias star construction to pegen helper. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>pull/25335/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 199 additions and 19 deletions
-
6Grammar/python.gram
-
8Include/internal/pycore_ast.h
-
4Lib/test/test_asdl_parser.py
-
28Lib/test/test_ast.py
-
2Lib/test/test_peg_generator/test_c_parser.py
-
1Misc/NEWS.d/next/Core and Builtins/2021-04-10-00-01-43.bpo-43798.p_nJFM.rst
-
1Parser/Python.asdl
-
60Parser/parser.c
-
6Parser/pegen.c
-
2Parser/pegen.h
-
100Python/Python-ast.c
@ -0,0 +1 @@ |
|||
:class:`ast.alias` nodes now include source location metadata attributes e.g. lineno, col_offset. |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue