| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a2b8f203-c71f-e809-b22d-5368914258c7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8AD4:1D90CC:3D0B963:564C1E4:6A4FA252 |
| html-safe-nonce | ff8234a40ae1bcbe31b590983159ea5c8c0eb9139c4600c892d47a7155e3d9b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUQ0OjFEOTBDQzozRDBCOTYzOjU2NEMxRTQ6NkE0RkEyNTIiLCJ2aXNpdG9yX2lkIjoiMjg0MTQ0MjE0NzY5Mzc3ODc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 822b2fbe2ad22c2769abe93e30b91b2197b338adbb9ef39b1265981bf4b1c42c |
| hovercard-subject-tag | pull_request:176171513 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/6157/files |
| twitter:image | https://avatars.githubusercontent.com/u/1026649?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1026649?s=400&v=4 |
| og:image:alt | 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 ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://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 AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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 |
| Reload | https://github.com/python/cpython/pull/6157/files |
| Reload | https://github.com/python/cpython/pull/6157/files |
| Reload | https://github.com/python/cpython/pull/6157/files |
| Please reload this page | https://github.com/python/cpython/pull/6157/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| ncoghlan | https://github.com/ncoghlan |
| python:master | https://github.com/python/cpython/tree/master |
| ncoghlan:bpo-33042-restore-preinit-sys-options | https://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 page | https://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 page | https://github.com/python/cpython/pull/6157/files |
| Please reload this page | https://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.rst | https://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.rst | https://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.rst | https://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.py | https://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.rst | https://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.c | https://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 page | https://github.com/python/cpython/pull/6157/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |