René's URL Explorer Experiment


Title: bpo-33042: Fix pre-initialization sys module configuration by ncoghlan · Pull Request #6157 · python/cpython · GitHub

Open Graph Title: bpo-33042: Fix pre-initialization sys module configuration by ncoghlan · Pull Request #6157 · python/cpython

X Title: bpo-33042: Fix pre-initialization sys module configuration by ncoghlan · Pull Request #6157 · python/cpython

Description: new test case for pre-initialization of sys.warnoptions and sys._xoptions restored ability to call these APIs prior to Py_Initialize update the docs for the affected APIs to make it clear they can be called before Py_Initialize also enhances the existing embedding test cases to check for expected settings in the sys module https://bugs.python.org/issue33042

Open Graph Description: new test case for pre-initialization of sys.warnoptions and sys._xoptions restored ability to call these APIs prior to Py_Initialize update the docs for the affected APIs to make it clear they can ...

X Description: new test case for pre-initialization of sys.warnoptions and sys._xoptions restored ability to call these APIs prior to Py_Initialize update the docs for the affected APIs to make it clear they can ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a2b8f203-c71f-e809-b22d-5368914258c7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8AD4:1D90CC:3D0B963:564C1E4:6A4FA252
html-safe-nonceff8234a40ae1bcbe31b590983159ea5c8c0eb9139c4600c892d47a7155e3d9b2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUQ0OjFEOTBDQzozRDBCOTYzOjU2NEMxRTQ6NkE0RkEyNTIiLCJ2aXNpdG9yX2lkIjoiMjg0MTQ0MjE0NzY5Mzc3ODc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac822b2fbe2ad22c2769abe93e30b91b2197b338adbb9ef39b1265981bf4b1c42c
hovercard-subject-tagpull_request:176171513
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/6157/files
twitter:imagehttps://avatars.githubusercontent.com/u/1026649?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1026649?s=400&v=4
og:image:altnew test case for pre-initialization of sys.warnoptions and sys._xoptions restored ability to call these APIs prior to Py_Initialize update the docs for the affected APIs to make it clear they can ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/6157/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F6157%2Ffiles
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/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/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/enterprise/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%2F6157%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/6157/files
Reloadhttps://github.com/python/cpython/pull/6157/files
Reloadhttps://github.com/python/cpython/pull/6157/files
Please reload this pagehttps://github.com/python/cpython/pull/6157/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/6157/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
ncoghlanhttps://github.com/ncoghlan
python:masterhttps://github.com/python/cpython/tree/master
ncoghlan:bpo-33042-restore-preinit-sys-optionshttps://github.com/ncoghlan/cpython/tree/bpo-33042-restore-preinit-sys-options
Conversation 6 https://github.com/python/cpython/pull/6157
Commits 10 https://github.com/python/cpython/pull/6157/commits
Checks 0 https://github.com/python/cpython/pull/6157/checks
Files changed https://github.com/python/cpython/pull/6157/files
Please reload this pagehttps://github.com/python/cpython/pull/6157/files
bpo-33042: Fix pre-initialization sys module configuration https://github.com/python/cpython/pull/6157/files#top
Show all changes 10 commits https://github.com/python/cpython/pull/6157/files
1354cef bpo-33042: Add new embedding test case ncoghlan Mar 20, 2018 https://github.com/python/cpython/pull/6157/commits/1354cef12fcc36cfc354b07d14e5cc8f5546ea23
32259c6 Avoid segfaulting in PySys_AddWarnOption et al ncoghlan Mar 21, 2018 https://github.com/python/cpython/pull/6157/commits/32259c61b620022f9d76a1506fc1f96f324c8e27
d019876 Merge remote-tracking branch 'origin/master' into bpo-33042-restore-p… ncoghlan Mar 24, 2018 https://github.com/python/cpython/pull/6157/commits/d019876178a2946e8aaa526ac80116a553362e59
4eebdff Actually fix the reported bug :) ncoghlan Mar 24, 2018 https://github.com/python/cpython/pull/6157/commits/4eebdff5d78202e5a54cc9f9c58284572ab8cecd
91226ef Test early deallocation of passed in strings ncoghlan Mar 24, 2018 https://github.com/python/cpython/pull/6157/commits/91226ef27cc13508a94a3c3f04bc871dbbddc4ff
7d4706f Add documentation updates ncoghlan Mar 24, 2018 https://github.com/python/cpython/pull/6157/commits/7d4706f79e6606e6f781ce26259c0f5ce1de527c
31cee99 Fix NEWS entry ncoghlan Mar 25, 2018 https://github.com/python/cpython/pull/6157/commits/31cee9924072e09bd9fa41c304c582fa3285e4ba
c29bd62 Run from the base directory ncoghlan Mar 25, 2018 https://github.com/python/cpython/pull/6157/commits/c29bd6219b39e496bfcf10101728dd4aeff50a4d
7e09dad Attempt to make Appveyor happy ncoghlan Mar 25, 2018 https://github.com/python/cpython/pull/6157/commits/7e09dad1a64ac32acf17cc1306d5309837905ad4
79ebd17 Use correct executable path ncoghlan Mar 25, 2018 https://github.com/python/cpython/pull/6157/commits/79ebd1746ca58629ce4f56f1b27b422b3ecea58a
Clear filters https://github.com/python/cpython/pull/6157/files
Please reload this pagehttps://github.com/python/cpython/pull/6157/files
Please reload this pagehttps://github.com/python/cpython/pull/6157/files
init.rst https://github.com/python/cpython/pull/6157/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
sys.rst https://github.com/python/cpython/pull/6157/files#diff-625eb612ccaffd9f1592a2f1145764c59314ab3c8f39b80219fd1a69d80fa7bd
3.7.rst https://github.com/python/cpython/pull/6157/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
test_embed.py https://github.com/python/cpython/pull/6157/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
2018-03-20-21-43-09.bpo-33042.FPFp64.rst https://github.com/python/cpython/pull/6157/files#diff-79856514a02201df13ee479b9803fef78dcec97a0da1657ae0c37385fa43eaa2
_testembed.c https://github.com/python/cpython/pull/6157/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
sysmodule.c https://github.com/python/cpython/pull/6157/files#diff-a3a5c73931235f7f344c072dc755d6508e13923db3f5d581c5e88652075871cb
Doc/c-api/init.rsthttps://github.com/python/cpython/pull/6157/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
View file https://github.com/ncoghlan/cpython/blob/79ebd1746ca58629ce4f56f1b27b422b3ecea58a/Doc/c-api/init.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/6157/{{ revealButtonHref }}
https://github.com/python/cpython/pull/6157/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
https://github.com/python/cpython/pull/6157/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
Doc/c-api/sys.rsthttps://github.com/python/cpython/pull/6157/files#diff-625eb612ccaffd9f1592a2f1145764c59314ab3c8f39b80219fd1a69d80fa7bd
View file https://github.com/ncoghlan/cpython/blob/79ebd1746ca58629ce4f56f1b27b422b3ecea58a/Doc/c-api/sys.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/6157/{{ revealButtonHref }}
https://github.com/python/cpython/pull/6157/files#diff-625eb612ccaffd9f1592a2f1145764c59314ab3c8f39b80219fd1a69d80fa7bd
https://github.com/python/cpython/pull/6157/files#diff-625eb612ccaffd9f1592a2f1145764c59314ab3c8f39b80219fd1a69d80fa7bd
https://github.com/python/cpython/pull/6157/files#diff-625eb612ccaffd9f1592a2f1145764c59314ab3c8f39b80219fd1a69d80fa7bd
https://github.com/python/cpython/pull/6157/files#diff-625eb612ccaffd9f1592a2f1145764c59314ab3c8f39b80219fd1a69d80fa7bd
Doc/whatsnew/3.7.rsthttps://github.com/python/cpython/pull/6157/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
View file https://github.com/ncoghlan/cpython/blob/79ebd1746ca58629ce4f56f1b27b422b3ecea58a/Doc/whatsnew/3.7.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/6157/{{ revealButtonHref }}
https://github.com/python/cpython/pull/6157/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
https://github.com/python/cpython/pull/6157/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
https://github.com/python/cpython/pull/6157/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
https://github.com/python/cpython/pull/6157/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
https://github.com/python/cpython/pull/6157/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
https://github.com/python/cpython/pull/6157/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
Lib/test/test_embed.pyhttps://github.com/python/cpython/pull/6157/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
View file https://github.com/ncoghlan/cpython/blob/79ebd1746ca58629ce4f56f1b27b422b3ecea58a/Lib/test/test_embed.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/6157/{{ revealButtonHref }}
https://github.com/python/cpython/pull/6157/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/6157/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/6157/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/6157/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/6157/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/6157/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/6157/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
Misc/NEWS.d/next/C API/2018-03-20-21-43-09.bpo-33042.FPFp64.rsthttps://github.com/python/cpython/pull/6157/files#diff-79856514a02201df13ee479b9803fef78dcec97a0da1657ae0c37385fa43eaa2
View file https://github.com/ncoghlan/cpython/blob/79ebd1746ca58629ce4f56f1b27b422b3ecea58a/Misc/NEWS.d/next/C%20API/2018-03-20-21-43-09.bpo-33042.FPFp64.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/6157/{{ revealButtonHref }}
Programs/_testembed.chttps://github.com/python/cpython/pull/6157/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
View file https://github.com/ncoghlan/cpython/blob/79ebd1746ca58629ce4f56f1b27b422b3ecea58a/Programs/_testembed.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/6157/{{ revealButtonHref }}
https://github.com/python/cpython/pull/6157/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
https://github.com/python/cpython/pull/6157/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
https://github.com/python/cpython/pull/6157/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
https://github.com/python/cpython/pull/6157/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
https://github.com/python/cpython/pull/6157/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
https://github.com/python/cpython/pull/6157/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
Please reload this pagehttps://github.com/python/cpython/pull/6157/files
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.