On 2/9/2020 7:34 AM, Soni L. wrote:
I propose that:
def foo(print(x)):
pass
becomes:
def foo(x):
x = print(x)
pass
or, alternatively we could have decorators in function args:
def foo(@print x):
pass
which would probably be more aligned with the rest of python actually.
anyway, this would be nice I think. I could really use it.
I'm having a hard time imagining where this would be useful. Could you
give a concrete example where it would make some code clearer? Surely
you wouldn't use it with print(), which returns None.
Eric
_______________________________________________
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/VGIQ35Q5WD6EI5GEOQEQ5KVXQ5UFMQWC/
Code of Conduct: http://python.org/psf/codeofconduct/