22.10.19 06:41, Andrew Barnert via Python-ideas пише:
2: I'm not sure what this would to to uses of "@" as an operator, as has been
suggested various times for various laudable reasons; remember that an @decorator or
other function definition is just another statement, and arbitrary expressions are
already statements.
I don’t understand this. @ already exists as an operator, and already takes
arbitrary expressions for the left and right operands, with no parser
ambiguity. What future worthwhile suggestions to that existing syntax are you
imagining that might break that?
There is a difference between
@deco1@deco2
def func():
and
@deco1
@deco2
def func():
But in some sense they look similar, and with more complex multiline
expressions they can look indistinguishable.
_______________________________________________
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/44P57YC7PEKDNTPTUSTF4EN52CVVL5NM/
Code of Conduct: http://python.org/psf/codeofconduct/