[New-bugs-announce] [issue32253] Deprecate old-style locking in asyncio/locks.py
Andrew Svetlov
report at bugs.python.org
Fri Dec 8 03:59:40 EST 2017
New submission from Andrew Svetlov <andrew.svetlov at gmail.com>:
Now constructions like
await lock # "yield from lock" can be used as well
try:
...
finally:
lock.release()
and
with (yield from lock):
...
are supported. Let's deprecate them in favor of
async with lock:
...
----------
components: asyncio
messages: 307839
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Deprecate old-style locking in asyncio/locks.py
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32253>
_______________________________________
More information about the New-bugs-announce
mailing list