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

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]