bpo-32012: Disallow trailing comma after genexpr without parenthesis. (#4382)

This commit is contained in:
Serhiy Storchaka 2017-11-15 08:49:40 +02:00 committed by GitHub
parent 3bda02222a
commit 9165f77d5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 13 deletions

View file

@ -0,0 +1,4 @@
SyntaxError is now correctly raised when a generator expression without
parenthesis is passed as an argument, but followed by a trailing comma.
A generator expression always needs to be directly inside a set of parentheses
and cannot have a comma on either side.