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 ncoghlan
Recipients benjamin.peterson, brett.cannon, cryvate, gvanrossum, ncoghlan, serhiy.storchaka, yselivanov
Date 2017-11-14.10:28:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I created to explicitly cover the base class list case, and after checking the language spec, I agree that case should be a syntax error.

However, `@deco(x for x in [])` should *not* be a syntax error, as:

* it's a call with one argument, so the genexp parentheses can be omitted as described in
* it matches the "@dotted_name(arg_list)" pattern permitted by
Date User Action Args
2017-11-14 10:28:28ncoghlansetrecipients: + ncoghlan, gvanrossum, brett.cannon, benjamin.peterson, serhiy.storchaka, yselivanov, cryvate
2017-11-14 10:28:28ncoghlansetmessageid: <>
2017-11-14 10:28:28ncoghlanlinkissue32012 messages
2017-11-14 10:28:28ncoghlancreate