Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] no documentation for async with #119191

Closed
youkaichao opened this issue May 19, 2024 · 1 comment
Closed

[Doc] no documentation for async with #119191

youkaichao opened this issue May 19, 2024 · 1 comment
Labels
docs Documentation in the Doc dir

Comments

@youkaichao
Copy link

Surprisingly, I find the documentation https://docs.python.org/3/library/asyncio.html does not even mention async with . However, this kind of usage is quite popular in libraries such as aiohttp https://github.com/aio-libs/aiohttp .

@youkaichao youkaichao added the docs Documentation in the Doc dir label May 19, 2024
@blhsing
Copy link
Contributor

blhsing commented May 20, 2024

https://docs.python.org/3/library/asyncio.html is an overview page and should not contain details of indivdual constructs and functions.

async with is formally documented in https://docs.python.org/3.9/reference/compound_stmts.html#the-async-with-statement and mentioned in https://docs.python.org/3/library/asyncio-task.html and https://docs.python.org/3/library/asyncio-sync.html , which are referenced in the overview page.

@JelleZijlstra JelleZijlstra closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

3 participants