[New-bugs-announce] [issue33546] asyncio.Condition should become awaitable in 3.9
Jason Fried
report at bugs.python.org
Wed May 16 14:25:47 EDT 2018
New submission from Jason Fried <me at jasonfried.info>:
In 3.9 we can remove the deprecated pattern for accepting __enter__ and __exit__ for locks. This will free up __await__ for Condition to use for replacing .wait() which is wart from before awaitables.
My new proposed behavior is
await cond
which would be equivalent of:
async with cond:
await cond.wait()
----------
components: asyncio
messages: 316848
nosy: asvetlov, fried, lukasz.langa, yselivanov
priority: normal
severity: normal
status: open
title: asyncio.Condition should become awaitable in 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33546>
_______________________________________
More information about the New-bugs-announce
mailing list