summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/pgen2/token.py
Commit message (Collapse)AuthorAgeFilesLines
* lib2to3: Support named assignment expressions (GH-12702)Tim Hatch2020-04-021-1/+2
| | | | | | | | | | | | There are two copies of the grammar -- the one used by Python itself as Grammar/Grammar, and the one used by lib2to3 which has necessarily diverged at Lib/lib2to3/Grammar.txt because it needs to support older syntax an we want it to be reasonable stable to avoid requiring fixer rewrites. This brings suport for syntax like `if x:= foo():` to match what the live Python grammar does. This should've been added at the time of the walrus operator itself, but lib2to3 being independent is often overlooked. So we do consider this a bugfix rather than enhancement.
* Revert "bpo-30406: Make async and await proper keywords (#1669)" (GH-6143)Jelle Zijlstra2018-03-181-2/+4
| | | | | This reverts commit ac317700ce7439e38a8b420218d9a5035bba92ed. (Reverts only the lib2to3 part.)
* bpo-30406: Make async and await proper keywords (#1669)Jelle Zijlstra2017-10-061-4/+2
| | | Per PEP 492, 'async' and 'await' should become proper keywords in 3.7.
* PEP 0492 -- Coroutines with async and await syntax. Issue #24017.Yury Selivanov2015-05-121-2/+4
|
* add matrix multiplication operator support to 2to3Benjamin Peterson2014-04-101-6/+7
|
* convert shebang lines: python -> python3Benjamin Peterson2010-03-111-1/+1
|
* Run 2to3 on this library.Martin v. Löwis2008-03-191-1/+1
|
* Merged revisions 61596-61597 via svnmerge fromMartin v. Löwis2008-03-191-0/+82
svn+ssh://pythondev@svn.python.org/python/trunk ........ r61596 | martin.v.loewis | 2008-03-18 23:43:46 -0500 (Di, 18 Mär 2008) | 2 lines Import lib2to3. ........ r61597 | martin.v.loewis | 2008-03-18 23:58:04 -0500 (Di, 18 Mär 2008) | 3 lines Initialized merge tracking via "svnmerge" with revisions "1-61595" from svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........