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-129846: docs(warnings): clarify suppression of warning output incatch_warnings#130768

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
Mr-Sunglasses wants to merge7 commits intopython:main
base:main
Choose a base branch
Loading
fromMr-Sunglasses:fix/129846
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
7 changes: 4 additions & 3 deletionsDoc/library/warnings.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -600,9 +600,10 @@ Available Context Managers
A context manager that copies and, upon exit, restores the warnings filter
and the :func:`showwarning` function.
If the *record* argument is :const:`False` (the default) the context manager
returns :class:`None` on entry. If *record* is :const:`True`, a list is
returned that is progressively populated with objects as seen by a custom
:func:`showwarning` function (which also suppresses output to ``sys.stdout``).
returns :class:`None` on entry. If *record* is :const:`True`, the default
warning stream is intercepted and a list is returned that is progressively
populated with objects as seen by a custom
:func:`showwarning` function (which also suppresses output to ``sys.stderr`` and other streams).
Each object in the list has attributes with the same names as the arguments to
:func:`showwarning`.

Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp