[issue45568] @asynccontextmanager is missing in decorator usage example

2021-10-22 Thread Zbigniew Siciarz


New submission from Zbigniew Siciarz :

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.

--
assignee: docs@python
components: Documentation
messages: 404739
nosy: docs@python, zsiciarz
priority: normal
severity: normal
status: open
title: @asynccontextmanager is missing in decorator usage example
type: enhancement
versions: Python 3.10

___
Python tracker 
<https://bugs.python.org/issue45568>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45568] @asynccontextmanager is missing in decorator usage example

2021-10-22 Thread Zbigniew Siciarz


Change by Zbigniew Siciarz :


--
keywords: +patch
pull_requests: +27428
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29151

___
Python tracker 
<https://bugs.python.org/issue45568>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com