cpython/Lib/lib2to3
Miss Islington (bot) 06bfd033e8
bpo-36541: Add lib2to3 grammar PEP-570 pos-only arg parsing (GH-23759)
Add positional only args support to lib2to3 pgen2.

This adds 3.8's PEP-570 support to lib2to3's pgen2.  lib2to3, while
being deprecated is still used by things to parse all versions of Python
code today.  We need it to support parsing modern 3.8 and 3.9 constructs.

Also add tests for complex *expr and **expr's.
(cherry picked from commit 42c9f0fd0a)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2020-12-14 09:29:57 -08:00
..
fixes bpo-38871: Fix lib2to3 for filter-based statements that contain lambda (GH-17780) 2020-01-07 09:52:06 -08:00
pgen2 lib2to3: Support named assignment expressions (GH-12702) 2020-04-02 16:03:09 -07:00
tests bpo-36541: Add lib2to3 grammar PEP-570 pos-only arg parsing (GH-23759) 2020-12-14 09:29:57 -08:00
Grammar.txt bpo-36541: Add lib2to3 grammar PEP-570 pos-only arg parsing (GH-23759) 2020-12-14 09:29:57 -08:00
PatternGrammar.txt
__init__.py
__main__.py Merged revisions 88535 via svnmerge from 2011-02-24 01:41:46 +00:00
btm_matcher.py bpo-29957: change LBYL key lookup to dict.setdefault (#938) 2017-04-01 23:02:31 -07:00
btm_utils.py Issue #27076: Doc, comment and tests spelling fixes 2016-05-26 05:35:26 +00:00
fixer_base.py rm unused import 2016-12-05 22:30:55 -08:00
fixer_util.py Revert "closes bpo-27494: Fix 2to3 handling of trailing comma after a generator expression (GH-3771)" (#8241) 2018-07-31 09:34:30 +03:00
main.py bpo-31583: Fix 2to3 for using with --add-suffix option (GH-3758) 2018-04-18 16:50:25 -07:00
patcomp.py remove unused import (#5040) 2017-12-28 23:24:40 -08:00
pygram.py bpo-23896: Add a grammar where exec isn't a stmt (#13272) 2019-05-20 13:27:10 -07:00
pytree.py bpo-29776: Use decorator syntax for properties. (#585) 2017-03-19 08:40:32 +02:00
refactor.py closes bpo-37675: Use pkgutil.iter_modules to find fixers in a package rather than listdir. (14942) 2019-07-24 17:00:39 -07:00