On Mon, Oct 25, 2021 at 1:16 AM Zomatree . <[email protected]> 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 -- [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/QCIQ6G4CBHLJHYRQ6HXV4UHHRRYH6UIE/ Code of Conduct: http://python.org/psf/codeofconduct/
