This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients benjamin.peterson, brett.cannon, ncoghlan, serhiy.storchaka, yselivanov
Date 2017-11-13.07:35:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2017-11-13 07:35:39serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, ncoghlan, benjamin.peterson, yselivanov
2017-11-13 07:35:39serhiy.storchakasetmessageid: <>
2017-11-13 07:35:39serhiy.storchakalinkissue32012 messages
2017-11-13 07:35:38serhiy.storchakacreate