aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/lib2to3/pgen2/token.py
Commit message (Collapse)AuthorAge
* gh-104780: Remove 2to3 program and lib2to3 module (#104781)Victor Stinner2023-05-23
| | | | | | | | | * Remove the Tools/scripts/2to3 script. * Remove the Lib/test/test_lib2to3/ directory. * Doc/tools/extensions/pyspecific.py: remove the "2to3fixer" object type. * Makefile and PC/layout/main.py no longer compile lib2to3 grammar files. * Update Makefile for 2to3 removal.
* bpo-44712: Replace "type(literal)" with corresponding builtin types (GH-27294)Serhiy Storchaka2022-05-08
| | | | I suppose it is a remnants of very old code written when str, int, list, dict, etc were functions and not classes.
* lib2to3: Support named assignment expressions (GH-12702)Tim Hatch2020-04-02
| | | | | | | | | | | | 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-18
| | | | | This reverts commit ac317700ce7439e38a8b420218d9a5035bba92ed. (Reverts only the lib2to3 part.)
* bpo-30406: Make async and await proper keywords (#1669)Jelle Zijlstra2017-10-05
| | | 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-11
|
* add matrix multiplication operator support to 2to3Benjamin Peterson2014-04-10
|
* convert shebang lines: python -> python3Benjamin Peterson2010-03-11
|
* Run 2to3 on this library.Martin v. Löwis2008-03-19
|
* Merged revisions 61596-61597 via svnmerge fromMartin v. Löwis2008-03-19
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 ........