Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

PR 4382 doesn't change the grammar, it changes only checks in the CST to AST 
transformer. Maybe it would be better to change the grammar. Currently it 
doesn't match the language specification and allows the following constructions:

    @deco(x for x in [1])
    def f(): ...

    class C(x for x in [1]): ...

And I think the part of issue27494 should be reverted.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32012>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to