Great! I've just read the PEP, and the new grammar is just
decorator: '@' namedexpr_test NEWLINE with the only parentheses requirement being tuple displays. Does that mean that the following is valid? class Spam: def __add__(self, other): return self def __call__(self, f): return f @ Spam() + Spam() def func(): pass That looks hella weird XD _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/UVFUGOB5Q2PG44NFLYY2O5UEOFADSZA7/ Code of Conduct: http://python.org/psf/codeofconduct/