René's URL Explorer Experiment


Title: gh-91230: Concise catch_warnings with simplefilter by Zac-HD · Pull Request #91435 · python/cpython · GitHub

Open Graph Title: gh-91230: Concise catch_warnings with simplefilter by Zac-HD · Pull Request #91435 · python/cpython

X Title: gh-91230: Concise catch_warnings with simplefilter by Zac-HD · Pull Request #91435 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Closes #91230, which was in turn motivated by pytest-dev/pytest#9404 (comment) and pytest-dev/pytest#9745 (comment): users evidently want a concise context manager to ignore all warnings in some bl...

X Description: Closes #91230, which was in turn motivated by pytest-dev/pytest#9404 (comment) and pytest-dev/pytest#9745 (comment): users evidently want a concise context manager to ignore all warnings in some bl...

Opengraph URL: https://github.com/python/cpython/pull/91435

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:f09ced27-8962-99d9-b6f4-c27c022e8906
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC45E:C5FC2:21C935A:2CAA569:6B004D98
html-safe-nonce3d4f4d6718e4ab7e0438f1b1ef19a962f3ece4d3690a5dee7bc8ad56c3679491
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDVFOkM1RkMyOjIxQzkzNUE6MkNBQTU2OTo2QjAwNEQ5OCIsInZpc2l0b3JfaWQiOiI2MDMwNzU3MDkxODYwMzAzMjU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc07352f3808f32332b6159f9f20c143347b855113baf2ff3428064fd85ecd6f9
hovercard-subject-tagpull_request:905386683
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/91435/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ca1ec3f13f9e59ccb02e56b3a762d88eb072913f3d3bbcd2127b091fd6a368ec/python/cpython/pull/91435
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ca1ec3f13f9e59ccb02e56b3a762d88eb072913f3d3bbcd2127b091fd6a368ec/python/cpython/pull/91435
og:image:altCloses #91230, which was in turn motivated by pytest-dev/pytest#9404 (comment) and pytest-dev/pytest#9745 (comment): users evidently want a concise context manager to ignore all warnings in some bl...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameZac-HD
hostnamegithub.com
expected-hostnamegithub.com
Nonef9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb27c5dde30676028abd5c5fc53ce5c9b625f8281
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/91435#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F91435
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F91435
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/91435
Reloadhttps://github.com/python/cpython/pull/91435
Reloadhttps://github.com/python/cpython/pull/91435
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/cpython/tree/main
Zac-HD:zac-hd/one-line-catch-warningshttps://github.com/Zac-HD/cpython/tree/zac-hd/one-line-catch-warnings
Conversationhttps://github.com/python/cpython/pull/91435
Commits4 (4)https://github.com/python/cpython/pull/91435/commits
Checkshttps://github.com/python/cpython/pull/91435/checks
Files changedhttps://github.com/python/cpython/pull/91435/files
gh-91230: Concise catch_warnings with simplefilterhttps://github.com/python/cpython/pull/91435#top
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/cpython/tree/main
Zac-HD:zac-hd/one-line-catch-warningshttps://github.com/Zac-HD/cpython/tree/zac-hd/one-line-catch-warnings
https://github.com/Zac-HD
Zac-HDhttps://github.com/Zac-HD
Apr 11, 2022https://github.com/python/cpython/pull/91435#issue-1199238778
Please reload this pagehttps://github.com/python/cpython/pull/91435
#91230https://github.com/python/cpython/issues/91230
pytest-dev/pytest#9404 (comment)https://github.com/pytest-dev/pytest/issues/9404#issuecomment-1004441576
pytest-dev/pytest#9745 (comment)https://github.com/pytest-dev/pytest/issues/9745#issuecomment-1073396716
Please reload this pagehttps://github.com/python/cpython/pull/91435
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Apr 11, 2022https://github.com/python/cpython/pull/91435#event-6405007275
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Apr 11, 2022 https://github.com/python/cpython/pull/91435#pullrequestreview-937372079
View reviewed changes https://github.com/python/cpython/pull/91435/files
Misc/NEWS.d/next/Library/2022-04-10-17-12-23.gh-issue-91230.T1d_fG.rsthttps://github.com/python/cpython/pull/91435/files#diff-5bfb96c3273277570afeefd2cf9657360b3e324be7ac7c7718f100786b045411
Please reload this pagehttps://github.com/python/cpython/pull/91435
https://github.com/Zac-HD
Zac-HDhttps://github.com/Zac-HD
force-pushedhttps://github.com/python/cpython/compare/3bac2a95c3b7b189bf632bc3811a5f2dfa02fae4..2098a680bb34521a9af8eab91461834cf56cd5ee
3bac2a9https://github.com/python/cpython/commit/3bac2a95c3b7b189bf632bc3811a5f2dfa02fae4
2098a68https://github.com/python/cpython/commit/2098a680bb34521a9af8eab91461834cf56cd5ee
Compare https://github.com/python/cpython/compare/3bac2a95c3b7b189bf632bc3811a5f2dfa02fae4..2098a680bb34521a9af8eab91461834cf56cd5ee
April 11, 2022 07:58https://github.com/python/cpython/pull/91435#event-6406666724
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
April 18, 2022 16:16https://github.com/python/cpython/pull/91435#event-6448921501
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 19, 2022 https://github.com/python/cpython/pull/91435#pullrequestreview-944991857
View reviewed changes https://github.com/python/cpython/pull/91435/files
JelleZijlstrahttps://github.com/JelleZijlstra
https://github.com/python/cpython/pull/91435#pullrequestreview-944991857
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/91435
Lib/warnings.pyhttps://github.com/python/cpython/pull/91435/files#diff-1d0c2ffbcb01254c4ab02053d85527be50e03ea2908dc6cdba9fc185b8df9b7b
Please reload this pagehttps://github.com/python/cpython/pull/91435
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 19, 2022https://github.com/python/cpython/pull/91435#event-6451464289
Zac-HDhttps://github.com/Zac-HD
April 18, 2022 19:59https://github.com/python/cpython/pull/91435#commits-pushed-67f69a2
https://github.com/Zac-HD
Catch warnings with simplefilterhttps://github.com/python/cpython/pull/91435/commits/67f69a2203a96dba2bd0c61613728d0fdcc47010
67f69a2https://github.com/python/cpython/pull/91435/commits/67f69a2203a96dba2bd0c61613728d0fdcc47010
https://github.com/Zac-HD
pythongh-91435https://github.com/python/cpython/pull/91435
: docs review responseshttps://github.com/python/cpython/pull/91435/commits/f7056eaff23b02aa081034cf21e9d918b4874484
f7056eahttps://github.com/python/cpython/pull/91435/commits/f7056eaff23b02aa081034cf21e9d918b4874484
https://github.com/Zac-HD
Zac-HDhttps://github.com/Zac-HD
force-pushedhttps://github.com/python/cpython/compare/2098a680bb34521a9af8eab91461834cf56cd5ee..f7056eaff23b02aa081034cf21e9d918b4874484
2098a68https://github.com/python/cpython/commit/2098a680bb34521a9af8eab91461834cf56cd5ee
f7056eahttps://github.com/python/cpython/commit/f7056eaff23b02aa081034cf21e9d918b4874484
Compare https://github.com/python/cpython/compare/2098a680bb34521a9af8eab91461834cf56cd5ee..f7056eaff23b02aa081034cf21e9d918b4874484
April 19, 2022 03:07https://github.com/python/cpython/pull/91435#event-6451557672
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 19, 2022 https://github.com/python/cpython/pull/91435#pullrequestreview-945008158
View reviewed changes https://github.com/python/cpython/pull/91435/files/f7056eaff23b02aa081034cf21e9d918b4874484
Doc/library/warnings.rsthttps://github.com/python/cpython/pull/91435/files/f7056eaff23b02aa081034cf21e9d918b4874484#diff-a1bebcbcf4952228ae2da9a070595507107a212259b66cd81fd843adc38f5cc0
Please reload this pagehttps://github.com/python/cpython/pull/91435
https://github.com/Zac-HD
pythongh-91435https://github.com/python/cpython/pull/91435
: fix rst formattinghttps://github.com/python/cpython/pull/91435/commits/de2c9188bfe30df93f9e3e676a3d792f697e2380
de2c918https://github.com/python/cpython/pull/91435/commits/de2c9188bfe30df93f9e3e676a3d792f697e2380
https://github.com/Zac-HD
Zac-HDhttps://github.com/Zac-HD
Apr 19, 2022https://github.com/python/cpython/pull/91435#issuecomment-1101961730
@JelleZijlstrahttps://github.com/JelleZijlstra
Please reload this pagehttps://github.com/python/cpython/pull/91435
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 23, 2022 https://github.com/python/cpython/pull/91435#pullrequestreview-951128289
View reviewed changes https://github.com/python/cpython/pull/91435/files/de2c9188bfe30df93f9e3e676a3d792f697e2380
JelleZijlstrahttps://github.com/JelleZijlstra
https://github.com/python/cpython/pull/91435#pullrequestreview-951128289
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/91435
Doc/library/warnings.rsthttps://github.com/python/cpython/pull/91435/files/de2c9188bfe30df93f9e3e676a3d792f697e2380#diff-a1bebcbcf4952228ae2da9a070595507107a212259b66cd81fd843adc38f5cc0
Please reload this pagehttps://github.com/python/cpython/pull/91435
https://github.com/Zac-HD
Update signature in warnings docshttps://github.com/python/cpython/pull/91435/commits/3d939d1c7874ff9f614e8e2de981732b0e34a528
3d939d1https://github.com/python/cpython/pull/91435/commits/3d939d1c7874ff9f614e8e2de981732b0e34a528
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
b4e0484https://github.com/python/cpython/commit/b4e048411f4c62ad7343bca32c307f0bf5ef74b4
Apr 24, 2022https://github.com/python/cpython/pull/91435#event-6485164611
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Apr 24, 2022https://github.com/python/cpython/pull/91435#event-6485164632
https://github.com/Zac-HD
Zac-HDhttps://github.com/Zac-HD
April 24, 2022 02:16https://github.com/python/cpython/pull/91435#event-6485221546
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 26, 2022 https://github.com/python/cpython/pull/91435#ref-commit-46b883c
https://github.com/JelleZijlstra
warnings: New arguments to catch_warnings()https://github.com/python/typeshed/commit/46b883c245c1a32b91207a3a80a4acac113d5d7d
46b883chttps://github.com/python/typeshed/commit/46b883c245c1a32b91207a3a80a4acac113d5d7d
python/cpython#91435https://github.com/python/cpython/pull/91435
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Apr 26, 2022 https://github.com/python/cpython/pull/91435#ref-pullrequest-1215289867
warnings: New arguments to catch_warnings() python/typeshed#7685 https://github.com/python/typeshed/pull/7685
https://github.com/Zac-HD
Zac-HDhttps://github.com/Zac-HD
Jul 10, 2024 https://github.com/python/cpython/pull/91435#ref-pullrequest-2377289172
Improve internal warning tests HypothesisWorks/hypothesis#4023 https://github.com/HypothesisWorks/hypothesis/pull/4023
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F91435
https://github.com/JelleZijlstra
JelleZijlstra https://github.com/JelleZijlstra
https://github.com/python/cpython/pull/91435/files/de2c9188bfe30df93f9e3e676a3d792f697e2380
https://github.com/AlexWaygood
AlexWaygood https://github.com/AlexWaygood
https://github.com/python/cpython/pull/91435/files/81f7c789366a715c9d1413d97a45ae2f4efd24ad
Please reload this pagehttps://github.com/python/cpython/pull/91435
https://github.com/JelleZijlstra
JelleZijlstra https://github.com/JelleZijlstra
Convenient simplefilter() in warnings.catch_warnings() https://github.com/python/cpython/issues/91230
Please reload this pagehttps://github.com/python/cpython/pull/91435
https://github.com/Zac-HD
https://github.com/JelleZijlstra
https://github.com/AlexWaygood
https://github.com/bedevere-bot
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.