Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-142044: Add note to prefer asyncio.timeout/timeout_at over Timeout#144449

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
kovan wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromkovan:gh-142044-asyncio-timeout-docs
Open
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletionsDoc/library/asyncio-task.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -766,6 +766,11 @@ Timeouts
The context manager produced by:func:`asyncio.timeout` can be
rescheduled to a different deadline and inspected.

..note::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

After looking at the generated doc, I think a note is a bit too loud. OTOH, I feel that havingTimeout inside the docs oftimeout is also wrong. My suggestion is to put it as a real documented class (outside the function description) and put that note there.

@kumaraditya303 How do you want the docs to be eventually rendered?


Prefer using:func:`asyncio.timeout` or:func:`asyncio.timeout_at`
rather than instantiating:class:`Timeout` directly.

..class::Timeout(when)

An:ref:`asynchronous context manager<async-context-managers>`
Expand Down
Loading

[8]ページ先頭

©2009-2026 Movatter.jp