This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: asyncio.Lock, Condition, Semaphore docs don't mention `async with` syntax
Type: Stage: resolved
Components: asyncio, Documentation Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: asvetlov, docs@python, gvanrossum, ulope, yselivanov
Priority: normal Keywords:

Created on 2016-11-15 16:03 by ulope, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg280861 - (view) Author: Ulrich Petri (ulope) * Date: 2016-11-15 16:03
The docs for asyncio's Lock, Condition and Semaphore should use the new clean `async with lock:` syntax instead of the older (and IMO rather ugly) `with (yield from lock):` version.
msg308809 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2017-12-20 20:40
Fixed by recent docs update for Python 3.7
History
Date User Action Args
2022-04-11 14:58:39adminsetgithub: 72883
2017-12-20 20:40:09asvetlovsetstatus: open -> closed

versions: - Python 3.5, Python 3.6
nosy: + asvetlov

messages: + msg308809
resolution: fixed
stage: resolved
2016-11-15 16:03:31ulopecreate