Guido van Rossum
2a1ee1d970
[3.9] bpo-35975: Only use cf_feature_version if PyCF_ONLY_AST in cf_flags ( #21022 )
2020-06-27 17:34:30 -07:00
Lysandros Nikolaou
5193d0a665
[3.9] bpo-41132: Use pymalloc allocator in the f-string parser (GH-21173) (GH-21183)
...
(cherry picked from commit 6dcbc2422d )
Automerge-Triggered-By: @pablogsal
2020-06-27 11:35:18 -07:00
Miss Islington (bot)
90ee51f1cd
bpo-40870: Invalidate usage of some constants with ast.Name (GH-20649)
...
(cherry picked from commit 68874a8502 )
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com >
2020-06-06 10:04:38 -07:00
Pablo Galindo
9b83829e7d
[3.9] bpo-40614: Respect feature version for f-string debug expressions (GH-20196) (GH-20464)
...
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com >
Co-authored-by: Pablo Galindo <pablogsal@gmail.com >
(cherry picked from commit c116c94 )
Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com >
2020-05-27 22:01:11 +01:00
Pablo Galindo
16ab07063c
bpo-40334: Correctly identify invalid target in assignment errors (GH-20076)
...
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com >
2020-05-15 02:04:52 +01:00
Serhiy Storchaka
cd8295ff75
bpo-39943: Add the const qualifier to pointers on non-mutable PyUnicode data. (GH-19345)
2020-04-11 10:48:40 +03:00
Pablo Galindo
40cf35c5b0
bpo-40141: Include the value in the column position for keyword AST nodes (GH-19348)
2020-04-03 21:02:26 +01:00
Pablo Galindo
254ec78341
bpo-40147: Move the check for duplicate keywords to the compiler (GH-19289)
2020-04-03 20:37:13 +01:00
Pablo Galindo
168660b547
bpo-40141: Add line and column information to ast.keyword nodes (GH-19283)
2020-04-02 00:47:39 +01:00
Victor Stinner
87d3b9db4a
bpo-39882: Add _Py_FatalErrorFormat() function (GH-19157)
2020-03-25 19:27:36 +01:00
Batuhan Taşkaya
0ac59f93c0
bpo-40000: Improve error messages when validating invalid ast.Constant nodes (GH-19055)
...
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com >
2020-03-19 11:32:28 +00:00
Serhiy Storchaka
6b97598fb6
bpo-39988: Remove ast.AugLoad and ast.AugStore node classes. (GH-19038)
2020-03-17 23:41:08 +02:00
Batuhan Taşkaya
8689209e03
bpo-39969: Remove ast.Param node class as is no longer used (GH-19020)
2020-03-15 19:32:17 +00:00
Serhiy Storchaka
13d52c2686
bpo-34822: Simplify AST for subscription. (GH-9605)
...
* Remove the slice type.
* Make Slice a kind of the expr type instead of the slice type.
* Replace ExtSlice(slices) with Tuple(slices, Load()).
* Replace Index(value) with a value itself.
All non-terminal nodes in AST for expressions are now of the expr type.
2020-03-10 18:52:34 +02:00
Batuhan Taşkaya
d82e469048
bpo-39639: Remove the AST "Suite" node and associated code (GH-18513)
...
The AST "Suite" node is no longer used and it can be removed from the ASDL definition and related structures (compiler, visitors, ...).
Co-Authored-By: Victor Stinner <vstinner@python.org >
Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com >
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com >
2020-03-04 16:16:46 +00:00
Brandt Bucher
be501ca241
bpo-39702: Relax grammar restrictions on decorators (PEP 614) (GH-18570)
2020-03-03 14:25:44 -08:00
Serhiy Storchaka
6e619c48b8
bpo-39474: Fix AST pos for expressions like (a)(b), (a)[b] and (a).b. (GH-18477)
2020-02-12 22:37:49 +02:00
Lysandros Nikolaou
d2e1098641
bpo-39579: Fix Attribute end_col_offset to point at the current node (GH-18405)
2020-02-07 15:36:32 -08:00
Guido van Rossum
a796d8ef9d
bpo-39235: Fix end location for genexp in call args (GH-17925)
...
The fix changes copy_location() to require an extra node from which to extract the end location, and fixing all 5 call sites.
https://bugs.python.org/issue39235
2020-01-09 11:18:47 -08:00
Ned Batchelder
37143a8e3b
bpo-39176: Improve error message for 'named assignment' (GH-17777)
2019-12-31 20:40:58 -06:00
Lysandros Nikolaou
50d4f12958
bpo-39080: Starred Expression's column offset fix when inside a CALL (GH-17645)
...
Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com >
2019-12-18 00:20:55 +00:00
Guido van Rossum
b08d3f71be
The comment in ast_for_namedexpr shouldn't include if_stmt (GH-17586)
...
Automerge-Triggered-By: @gvanrossum
2019-12-15 10:00:33 -08:00
Lysandros Nikolaou
5936a4ce91
Fix elif start column offset when there is an else following (GH-17596)
2019-12-14 10:24:57 +00:00
Lysandros Nikolaou
025a602af7
bpo-39031: Include elif keyword when producing lineno/col-offset info for if_stmt (GH-17582)
...
When parsing an "elif" node, lineno and col_offset of the node now point to the "elif" keyword and not to its condition, making it consistent with the "if" node.
https://bugs.python.org/issue39031
Automerge-Triggered-By: @pablogsal
2019-12-12 13:40:21 -08:00
Serhiy Storchaka
26ae9f6d3d
bpo-38535: Fix positions for AST nodes for calls without arguments in decorators. (GH-16861)
2019-10-26 16:46:05 +03:00