cpython/Lib/lib2to3/tests
Miss Islington (bot) 1098671e4e
lib2to3: Support named assignment expressions (GH-12702)
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.
(cherry picked from commit 3c3aa4516c)

Co-authored-by: Tim Hatch <tim@timhatch.com>
2020-04-02 16:03:09 -07:00
..
data bpo-11594: Ensure line-endings are respected when using 2to3 (GH-6483) 2018-04-17 14:34:14 -07:00
__init__.py Remove unused imports. 2016-12-16 20:00:15 +02:00
__main__.py
pytree_idempotency.py Issue 26911: fix import (other problems remain). 2016-05-06 15:57:57 -04:00
support.py closes bpo-30117: fix lib2to3 ParserIdempotency test (GH-1242) 2018-01-29 23:13:03 -08:00
test_all_fixers.py Issue #23277: Remove unused imports in tests. 2016-04-24 21:41:02 +03:00
test_fixers.py bpo-38871: Fix lib2to3 for filter-based statements that contain lambda (GH-17780) 2020-01-07 09:52:06 -08:00
test_main.py
test_parser.py lib2to3: Support named assignment expressions (GH-12702) 2020-04-02 16:03:09 -07:00
test_pytree.py Remove legacy "from __future__ import with_statement" lines. 2016-09-08 13:47:41 -07:00
test_refactor.py bpo-34108: Fix double carriage return in 2to3 on Windows (#8271) 2018-07-13 11:26:03 -04:00
test_util.py Issue #23277: Remove more unused sys and os imports. 2016-04-24 13:25:01 +03:00