On Mon, Oct 25, 2021 at 1:16 AM Zomatree . <angelokonta...@hotmail.com> wrote:
>
> What would the the syntax for the default be, i would presume just a single 
> expression like a lambda, but what about something like an async function, 
> for example:
> ```py
> async def foo(arg=>await get_arg()):
> ```
> would this work?

That's an open question at the moment, but I suspect that it will be
perfectly acceptable. Same with a yield expression in a generator.

ChrisA
_______________________________________________
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/QCIQ6G4CBHLJHYRQ6HXV4UHHRRYH6UIE/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to