[Python-ideas] async/await in Python
Chris Angelico
rosuav at gmail.com
Sat Apr 18 00:52:34 CEST 2015
On Sat, Apr 18, 2015 at 8:24 AM, David Wilson <dw+python-ideas at hmmz.org> wrote:
> Is there a need or desire for "async lambda ...:"? Notably, it's
> possible though fairly useless to define a lambda generator:
> "lambda x: (yield from x)" works today.
Possible, indeed, but I suspect it's pretty rare. That's why bugs like
this can lurk around - virtually nobody uses lambda to write
generators:
http://bugs.python.org/issue23192
And it wasn't production code that led me to run into that issue, it
was solely from playing with the syntax.
ChrisA
More information about the Python-ideas
mailing list