diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-15 06:49:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-15 06:49:40 (GMT) |
commit | 9165f77d5f93a2c12aa0e90853e3ae7212800d3c (patch) | |
tree | 96b831acd89b33f865d0be34bdbf5b7431c780c0 /Misc | |
parent | 3bda02222aa3783bf85fc3ff8bc042aefd9c4fd3 (diff) | |
download | cpython-9165f77d5f93a2c12aa0e90853e3ae7212800d3c.zip cpython-9165f77d5f93a2c12aa0e90853e3ae7212800d3c.tar.gz cpython-9165f77d5f93a2c12aa0e90853e3ae7212800d3c.tar.bz2 |
bpo-32012: Disallow trailing comma after genexpr without parenthesis. (#4382)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2017-11-13-00-37-11.bpo-32012.Kprjqe.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2017-11-13-00-37-11.bpo-32012.Kprjqe.rst b/Misc/NEWS.d/next/Core and Builtins/2017-11-13-00-37-11.bpo-32012.Kprjqe.rst new file mode 100644 index 0000000..776a261 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2017-11-13-00-37-11.bpo-32012.Kprjqe.rst @@ -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. |