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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/UVFUGOB5Q2PG44NFLYY2O5UEOFADSZA7/
Code of Conduct: http://python.org/psf/codeofconduct/