]> granicus.if.org Git - python/commit
bpo-33064: lib2to3: support trailing comma after *args and **kwargs (GH-6096) (#6098)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 13 Mar 2018 08:32:28 +0000 (01:32 -0700)
committerŁukasz Langa <lukasz@langa.pl>
Tue, 13 Mar 2018 08:32:28 +0000 (01:32 -0700)
commit6a526f673878677032c02f7800ee13d4769f391a
tree5b06ec97262d61316d11f89c169165f2f5688149
parent069b8d20be8018fbd49ed5aaf64c4caba311e48f
bpo-33064: lib2to3: support trailing comma after *args and **kwargs (GH-6096) (#6098)

New tests also added.

I also made the comments in line with the builtin Grammar/Grammar. PEP 306 was
withdrawn, Kees Blom's railroad program has been lost to the sands of time for
at least 16 years now (I found a python-dev post from people looking for it).
(cherry picked from commit b51f5de71163f096d2d5229ede5379cdb284f651)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Lib/lib2to3/Grammar.txt
Lib/lib2to3/tests/test_parser.py
Misc/NEWS.d/next/Library/2018-03-12-19-58-25.bpo-33064.LO2KIY.rst [new file with mode: 0644]