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: @asynccontextmanager is missing in decorator usage example
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.11, Python 3.10
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: asvetlov, docs@python, miss-islington, zsiciarz
Priority: normal Keywords: patch

Created on 2021-10-22 09:51 by zsiciarz, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 29151 merged zsiciarz, 2021-10-22 09:56
PR 29779 merged asvetlov, 2021-11-25 16:50
Messages (3)
msg404739 - (view) Author: Zbigniew Siciarz (zsiciarz) * Date: 2021-10-22 09:51
The docs of contextlib.asynccontextmanager provide an example how to use it as a decorator (https://docs.python.org/3/library/contextlib.html#contextlib.asynccontextmanager). However, the example snippet of code doesn't decorate the timeit() function with @asynccontextmanager, leading to reader confusion.
msg406993 - (view) Author: miss-islington (miss-islington) Date: 2021-11-25 12:30
New changeset 4dd82194f4a0e48a94191655e571b3aad1c4a22a by Zbigniew Siciarz in branch 'main':
bpo-45568: Actually use @asynccontextmanager in usage example (GH-29151)
https://github.com/python/cpython/commit/4dd82194f4a0e48a94191655e571b3aad1c4a22a
msg407010 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2021-11-25 17:20
New changeset 52d10f6485a168141e7a50d68f9a9566fdd8379d by Andrew Svetlov in branch '3.10':
[3.10] bpo-45568: Actually use @asynccontextmanager in usage example (GH-29151) (GH-29779)
https://github.com/python/cpython/commit/52d10f6485a168141e7a50d68f9a9566fdd8379d
History
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89731
2021-11-25 17:31:47asvetlovsetversions: + Python 3.11
2021-11-25 17:31:29asvetlovsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-11-25 17:20:26asvetlovsetmessages: + msg407010
2021-11-25 16:50:31asvetlovsetnosy: + asvetlov
pull_requests: + pull_request28016
2021-11-25 12:30:56miss-islingtonsetnosy: + miss-islington
messages: + msg406993
2021-10-22 09:56:00zsiciarzsetkeywords: + patch
stage: patch review
pull_requests: + pull_request27428
2021-10-22 09:51:42zsiciarzcreate