Message380408
Adding this would be a nice compliment to aclosing(), which was already merged for 3.10.
Otherwise, witness the ugliness of using aclosing() with an async iterable object:
async with aclosing(foo.__aiter__()) as agen:
async for item in agen:
...
I'd like:
async with aclosing(aiter(foo)) as agen:
async for item in agen:
... |
|
Date |
User |
Action |
Args |
2020-11-05 12:03:22 | John Belmonte | set | recipients:
+ John Belmonte, rb, jab, davide.rizzo, jmehnle, Dima.Tisnek, yselivanov, JelleZijlstra, Eric Wieser |
2020-11-05 12:03:22 | John Belmonte | set | messageid: <1604577802.86.0.418831834919.issue31861@roundup.psfhosted.org> |
2020-11-05 12:03:22 | John Belmonte | link | issue31861 messages |
2020-11-05 12:03:22 | John Belmonte | create | |
|