René's URL Explorer Experiment


Title: bpo-32230, bpo-20361: Set sys.warnoptions for all command line options by ncoghlan · Pull Request #4734 · python/cpython · GitHub

Open Graph Title: bpo-32230, bpo-20361: Set sys.warnoptions for all command line options by ncoghlan · Pull Request #4734 · python/cpython

X Title: bpo-32230, bpo-20361: Set sys.warnoptions for all command line options by ncoghlan · Pull Request #4734 · python/cpython

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

Open Graph Description: Rather than supporting dev mode and the command line BytesWarning flag directly in the warnings module, this instead adjusts the initialisation code to add extra entries to sys.warnoptions when the...

X Description: Rather than supporting dev mode and the command line BytesWarning flag directly in the warnings module, this instead adjusts the initialisation code to add extra entries to sys.warnoptions when the...

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

X: @github

direct link

Domain: github.com

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:4cd69121-116f-1e5b-02a9-b34b5a634a45
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id84EC:70D9B:18018E:2058A0:6A4D2925
html-safe-nonce73ac6092770e4c2197e72055101396ac005fcc318e1c51a2d29a993ec9ff563c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEVDOjcwRDlCOjE4MDE4RToyMDU4QTA6NkE0RDI5MjUiLCJ2aXNpdG9yX2lkIjoiMjU4NjIzNjY3Mzg1NjQ0ODgwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac363c9f2e84509f588e9a874badc1eeac37e2546a69c82357780f9bcf7fd13436
hovercard-subject-tagpull_request:156692162
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/4734/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7d3a004eb111ff4f39c4711692ae54645e5f331c229f32a63647877d4b9b28d8/python/cpython/pull/4734
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7d3a004eb111ff4f39c4711692ae54645e5f331c229f32a63647877d4b9b28d8/python/cpython/pull/4734
og:image:altRather than supporting dev mode and the command line BytesWarning flag directly in the warnings module, this instead adjusts the initialisation code to add extra entries to sys.warnoptions when the...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamencoghlan
hostnamegithub.com
expected-hostnamegithub.com
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
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
release93f17a978ee60bc4668e1d7b90e6bd2d622261fd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/4734#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F4734
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F4734
Sign up https://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/4734
Reloadhttps://github.com/python/cpython/pull/4734
Reloadhttps://github.com/python/cpython/pull/4734
Please reload this pagehttps://github.com/python/cpython/pull/4734
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/4734
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
ncoghlanhttps://github.com/ncoghlan
python:masterhttps://github.com/python/cpython/tree/master
ncoghlan:issue-32230-set-warnoptions-in-dev-modehttps://github.com/ncoghlan/cpython/tree/issue-32230-set-warnoptions-in-dev-mode
Conversationhttps://github.com/python/cpython/pull/4734
Commits11 (11)https://github.com/python/cpython/pull/4734/commits
Checkshttps://github.com/python/cpython/pull/4734/checks
Files changedhttps://github.com/python/cpython/pull/4734/files
bpo-32230, bpo-20361: Set sys.warnoptions for all command line optionshttps://github.com/python/cpython/pull/4734#top
ncoghlanhttps://github.com/ncoghlan
python:masterhttps://github.com/python/cpython/tree/master
ncoghlan:issue-32230-set-warnoptions-in-dev-modehttps://github.com/ncoghlan/cpython/tree/issue-32230-set-warnoptions-in-dev-mode
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
Dec 6, 2017https://github.com/python/cpython/pull/4734#issue-279700683
Please reload this pagehttps://github.com/python/cpython/pull/4734
https://bugs.python.org/issue32230https://bugs.python.org/issue32230
https://bugs.python.org/issue20361https://bugs.python.org/issue20361
Please reload this pagehttps://github.com/python/cpython/pull/4734
https://github.com/ncoghlan
bpo-32230: Set sys.warnoptions with -X devhttps://github.com/python/cpython/pull/4734/commits/a8b40f3b9dab8f7ae043ec38453203bd798611c7
a8b40f3https://github.com/python/cpython/pull/4734/commits/a8b40f3b9dab8f7ae043ec38453203bd798611c7
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
gpsheadhttps://github.com/gpshead
code ownerhttps://github.com/python/cpython/blob/a2a25eb03762680b98bb8cd090e43d0994a72c49/.github/CODEOWNERS#L34
December 6, 2017 10:27https://github.com/python/cpython/pull/4734#event-1374494724
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Dec 6, 2017https://github.com/python/cpython/pull/4734#event-1374494805
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Dec 6, 2017https://github.com/python/cpython/pull/4734#event-1374494817
https://github.com/ncoghlan
Fix typo in NEWS entryhttps://github.com/python/cpython/pull/4734/commits/0cb8f29c664f1d315fe0a805a830898cd90aa614
0cb8f29https://github.com/python/cpython/pull/4734/commits/0cb8f29c664f1d315fe0a805a830898cd90aa614
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
vstinnerhttps://github.com/vstinner
December 6, 2017 10:30https://github.com/python/cpython/pull/4734#event-1374499104
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Dec 6, 2017 https://github.com/python/cpython/pull/4734#pullrequestreview-81478651
View reviewed changes https://github.com/python/cpython/pull/4734/files/0cb8f29c664f1d315fe0a805a830898cd90aa614
Lib/test/test_cmd_line.pyhttps://github.com/python/cpython/pull/4734/files/0cb8f29c664f1d315fe0a805a830898cd90aa614#diff-128fff16ea63b541718887f5c714e0c1a357414fe1146b4893ef699e8853e3b0
vstinnerhttps://github.com/vstinner
Dec 6, 2017https://github.com/python/cpython/pull/4734#discussion_r155200555
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://bugs.python.org/issue32230https://bugs.python.org/issue32230
Please reload this pagehttps://github.com/python/cpython/pull/4734
ncoghlanhttps://github.com/ncoghlan
Dec 6, 2017https://github.com/python/cpython/pull/4734#discussion_r155204615
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/4734
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting changes https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Dec 6, 2017https://github.com/python/cpython/pull/4734#event-1374515689
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Dec 6, 2017https://github.com/python/cpython/pull/4734#issuecomment-349601187
Please reload this pagehttps://github.com/python/cpython/pull/4734
ncoghlanhttps://github.com/ncoghlan
December 6, 2017 20:44https://github.com/python/cpython/pull/4734#commits-pushed-e1a7d62
https://github.com/ncoghlan
-X dev should take precedence over PYTHONWARNINGShttps://github.com/python/cpython/pull/4734/commits/e1a7d62d9381cf1e49b7ccd1f1c202095ae0c6a3
e1a7d62https://github.com/python/cpython/pull/4734/commits/e1a7d62d9381cf1e49b7ccd1f1c202095ae0c6a3
https://github.com/ncoghlan
Add explanatory comment about BytesWarninghttps://github.com/python/cpython/pull/4734/commits/89960efb5879c5201fad10592e8a1ec55c2beecf
89960efhttps://github.com/python/cpython/pull/4734/commits/89960efb5879c5201fad10592e8a1ec55c2beecf
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
Dec 6, 2017https://github.com/python/cpython/pull/4734#issuecomment-349607918
89960efhttps://github.com/python/cpython/commit/89960efb5879c5201fad10592e8a1ec55c2beecf
https://bugs.python.org/issue32231https://bugs.python.org/issue32231
Please reload this pagehttps://github.com/python/cpython/pull/4734
ncoghlanhttps://github.com/ncoghlan
December 6, 2017 21:55https://github.com/python/cpython/pull/4734#commits-pushed-d5c1576
https://github.com/ncoghlan
Fix Python level checks for a debug buildhttps://github.com/python/cpython/pull/4734/commits/d5c157691dba9a034dbc5ea065b7f99c38cb804a
d5c1576https://github.com/python/cpython/pull/4734/commits/d5c157691dba9a034dbc5ea065b7f99c38cb804a
https://github.com/ncoghlan
Add a comment explaining warnings filter priority orderhttps://github.com/python/cpython/pull/4734/commits/019dbea0b569f2f186688c33b31605c965d8709c
019dbeahttps://github.com/python/cpython/pull/4734/commits/019dbea0b569f2f186688c33b31605c965d8709c
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Dec 6, 2017https://github.com/python/cpython/pull/4734#issuecomment-349626305
https://bugs.python.org/issue20361https://bugs.python.org/issue20361
https://bugs.python.org/issue32230#msg307732https://bugs.python.org/issue32230#msg307732
https://bugs.python.org/issue20361https://bugs.python.org/issue20361
Please reload this pagehttps://github.com/python/cpython/pull/4734
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
Dec 6, 2017https://github.com/python/cpython/pull/4734#issuecomment-349629825
Please reload this pagehttps://github.com/python/cpython/pull/4734
ncoghlanhttps://github.com/ncoghlan
December 7, 2017 16:53https://github.com/python/cpython/pull/4734#commits-pushed-04f7de3
https://github.com/ncoghlan
Address PR review feedbackhttps://github.com/python/cpython/pull/4734/commits/04f7de32e0a5a229bea9f595cac3d2cf000f4656
04f7de3https://github.com/python/cpython/pull/4734/commits/04f7de32e0a5a229bea9f595cac3d2cf000f4656
https://github.com/ncoghlan
Second NEWS entry, and update What's Newhttps://github.com/python/cpython/pull/4734/commits/6e44c431c85acdbc8b698f22271c7b8f78af7f25
6e44c43https://github.com/python/cpython/pull/4734/commits/6e44c431c85acdbc8b698f22271c7b8f78af7f25
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
Dec 7, 2017https://github.com/python/cpython/pull/4734#event-1376335265
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
Dec 7, 2017https://github.com/python/cpython/pull/4734#issuecomment-349885167
Please reload this pagehttps://github.com/python/cpython/pull/4734
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Dec 7, 2017https://github.com/python/cpython/pull/4734#issuecomment-349885175
@vstinnerhttps://github.com/vstinner
Please reload this pagehttps://github.com/python/cpython/pull/4734
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting change review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20change%20review%22
awaiting changes https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
Dec 7, 2017https://github.com/python/cpython/pull/4734#event-1376338313
https://github.com/ncoghlan
Add warnings filter test casehttps://github.com/python/cpython/pull/4734/commits/ed37a23abcef7362411fbca5c008d447a99be8e0
ed37a23https://github.com/python/cpython/pull/4734/commits/ed37a23abcef7362411fbca5c008d447a99be8e0
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
Dec 7, 2017https://github.com/python/cpython/pull/4734#issuecomment-349905651
@vstinnerhttps://github.com/vstinner
Please reload this pagehttps://github.com/python/cpython/pull/4734
ncoghlanhttps://github.com/ncoghlan
December 7, 2017 19:19https://github.com/python/cpython/pull/4734#commits-pushed-77b1f02
https://github.com/ncoghlan
Use the code role to avoid a warninghttps://github.com/python/cpython/pull/4734/commits/77b1f02aa39d5e7f0f9d1f6aeba13ec296b57df1
77b1f02https://github.com/python/cpython/pull/4734/commits/77b1f02aa39d5e7f0f9d1f6aeba13ec296b57df1
https://github.com/ncoghlan
Suppress false alarms from 'make suspicious'https://github.com/python/cpython/pull/4734/commits/a85790be3a816f44ca6f01e2dd6ad596850af733
a85790bhttps://github.com/python/cpython/pull/4734/commits/a85790be3a816f44ca6f01e2dd6ad596850af733
https://github.com/csabella
csabellahttps://github.com/csabella
Dec 10, 2017https://github.com/python/cpython/pull/4734#issuecomment-350551314
@ncoghlanhttps://github.com/ncoghlan
Please reload this pagehttps://github.com/python/cpython/pull/4734
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
Dec 12, 2017https://github.com/python/cpython/pull/4734#issuecomment-350924879
Please reload this pagehttps://github.com/python/cpython/pull/4734
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Dec 12, 2017https://github.com/python/cpython/pull/4734#issuecomment-351204000
#4820https://github.com/python/cpython/pull/4820
Please reload this pagehttps://github.com/python/cpython/pull/4734
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Dec 12, 2017 https://github.com/python/cpython/pull/4734#ref-pullrequest-281546618
bpo-32230: Set sys.warnoptions with -X dev #4820 https://github.com/python/cpython/pull/4820
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Dec 12, 2017https://github.com/python/cpython/pull/4734#issuecomment-351208942
#4820https://github.com/python/cpython/pull/4820
Please reload this pagehttps://github.com/python/cpython/pull/4734
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Dec 12, 2017https://github.com/python/cpython/pull/4734#event-1384519362
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
Dec 14, 2017https://github.com/python/cpython/pull/4734#issuecomment-351615819
Please reload this pagehttps://github.com/python/cpython/pull/4734
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
March 30, 2018 07:52https://github.com/python/cpython/pull/4734#event-1549365698
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%2F4734
https://github.com/vstinner
vstinner https://github.com/vstinner
https://github.com/python/cpython/pull/4734/files/0cb8f29c664f1d315fe0a805a830898cd90aa614
https://github.com/gpshead
gpshead https://github.com/gpshead
awaiting change review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20change%20review%22
Please reload this pagehttps://github.com/python/cpython/pull/4734
https://github.com/ncoghlan
https://github.com/bedevere-bot
https://github.com/vstinner
https://github.com/csabella
https://github.com/the-knights-who-say-ni
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.