[Python-ideas] async/await in Python

Yury Selivanov yselivanov.ml at gmail.com
Sat Apr 18 00:22:39 CEST 2015


On 2015-04-17 6:20 PM, Andrew Barnert wrote:
> On Apr 17, 2015, at 15:00, Chris Angelico <rosuav at gmail.com> wrote:
[...]
>>> Comprehensions
>>> --------------
>>>
>>> For the sake of restricting the broadness of this PEP there is no new syntax
>>> for asynchronous comprehensions.  This should be considered in a separate
>>> PEP,
>>> if there is a strong demand for this feature.
>> Likewise asynchronous lambda functions (or maybe I just missed it).
> Do you think those would be useful? Anything small enough to be worth writing inline seems like it would be swamped by almost doubling the syntactic overhead, and therefore a lot less likely to still be worth writing inline... But maybe there's still a wide enough range where that wouldn't be true?

To be honest, I think that typing 'async lambda' doesn't
make things look small ;)

Yury



More information about the Python-ideas mailing list