diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-15 15:39:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-15 15:39:37 (GMT) |
commit | ddbce1378644f9d5ad0651e1c9035bd8c6502edc (patch) | |
tree | 73cd927d1c2b3bcaa6f5d6ad4bbf9d95927c5f3b /Misc | |
parent | edad8eebeee3c99e324a7f1ac5073167c2b0b54d (diff) | |
download | cpython-ddbce1378644f9d5ad0651e1c9035bd8c6502edc.zip cpython-ddbce1378644f9d5ad0651e1c9035bd8c6502edc.tar.gz cpython-ddbce1378644f9d5ad0651e1c9035bd8c6502edc.tar.bz2 |
bpo-32023: Disallow genexprs without parenthesis in class definitions. (#4400)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2017-11-15-10-49-35.bpo-32023.XnCGT5.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2017-11-15-10-49-35.bpo-32023.XnCGT5.rst b/Misc/NEWS.d/next/Core and Builtins/2017-11-15-10-49-35.bpo-32023.XnCGT5.rst new file mode 100644 index 0000000..d4a8438 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2017-11-15-10-49-35.bpo-32023.XnCGT5.rst @@ -0,0 +1,3 @@ +SyntaxError is now correctly raised when a generator expression without +parenthesis is used instead of an inheritance list in a class definition. +The duplication of the parentheses can be omitted only on calls. |