[issue32023] Always require parentheses for genexps in base class lists

2017-11-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue32023] Always require parentheses for genexps in base class lists

2017-11-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ddbce1378644f9d5ad0651e1c9035bd8c6502edc by Serhiy Storchaka in branch 'master': bpo-32023: Disallow genexprs without parenthesis in class definitions. (#4400) https://github.com/python/cpython/commit/ddbce1378644f9d5ad0651e1c9035bd8c6502edc

[issue32023] Always require parentheses for genexps in base class lists

2017-11-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4349 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue32023] Always require parentheses for genexps in base class lists

2017-11-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Disallow ambiguous syntax f(x for x in [1],) ___ Python tracker ___ ___ Python-bugs-li

[issue32023] Always require parentheses for genexps in base class lists

2017-11-14 Thread Nick Coghlan
New submission from Nick Coghlan : The compiler currently allows parentheses to be omitted if a generator expression is the sole entry in a base class list: >>> class C(x for x in []): pass ... Traceback (most recent call last): File "", line 1, in TypeError: cannot crea