René's URL Explorer Experiment


Title: [3.7] bpo-34247: Fix Python 3.7 initialization by vstinner · Pull Request #8659 · python/cpython · GitHub

Open Graph Title: [3.7] bpo-34247: Fix Python 3.7 initialization by vstinner · Pull Request #8659 · python/cpython

X Title: [3.7] bpo-34247: Fix Python 3.7 initialization by vstinner · Pull Request #8659 · python/cpython

Description: -X dev: it is now possible to override the memory allocator using PYTHONMALLOC even if the developer mode is enabled. Add _Py_InitializeFromConfig() Add _Py_Initialize_ReadEnvVars() to set global configuration variables from environment variables Fix the code to initialize Python: Py_Initialize() now also reads environment variables _Py_InitializeCore() can now be called repeatedly: the second and subsequent calls only replace the configuration, they don't recreate the main interpreter Write unit tests on Py_Initialize() and the different ways to configure Python The isolated mode now always sets Py_IgnoreEnvironmentFlag and Py_NoUserSiteDirectory to 1. pymain_read_conf() now saves/restores the configuration if the encoding changed https://bugs.python.org/issue34247

Open Graph Description: -X dev: it is now possible to override the memory allocator using PYTHONMALLOC even if the developer mode is enabled. Add _Py_InitializeFromConfig() Add _Py_Initialize_ReadEnvVars() to set global c...

X Description: -X dev: it is now possible to override the memory allocator using PYTHONMALLOC even if the developer mode is enabled. Add _Py_InitializeFromConfig() Add _Py_Initialize_ReadEnvVars() to set global c...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:88a78565-946a-6310-c00b-8c317bdfe320
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD23C:346934:1C887A:25BB31:6A503A92
html-safe-nonce6faa3132616fd0280317d9547d417286e189fbe965777baa978b9c6d3319d33e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjNDOjM0NjkzNDoxQzg4N0E6MjVCQjMxOjZBNTAzQTkyIiwidmlzaXRvcl9pZCI6IjQzMzczMjk3Nzg4Njc3MTg1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3f4a94bd2ee78a95294200aa57dae8e42c5270cdeff78d58bfae4780a9155b1a
hovercard-subject-tagpull_request:206130550
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/8659/files
twitter:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
og:image:alt-X dev: it is now possible to override the memory allocator using PYTHONMALLOC even if the developer mode is enabled. Add _Py_InitializeFromConfig() Add _Py_Initialize_ReadEnvVars() to set global c...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb
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
released90666eaf032b7eb8975a378efe38e37f4ebb96c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/8659/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F8659%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%2F8659%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/8659/files
Reloadhttps://github.com/python/cpython/pull/8659/files
Reloadhttps://github.com/python/cpython/pull/8659/files
Please reload this pagehttps://github.com/python/cpython/pull/8659/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/8659/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.9k 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
vstinnerhttps://github.com/vstinner
python:3.7https://github.com/python/cpython/tree/3.7
Conversation 23 https://github.com/python/cpython/pull/8659
Commits 5 https://github.com/python/cpython/pull/8659/commits
Checks 0 https://github.com/python/cpython/pull/8659/checks
Files changed https://github.com/python/cpython/pull/8659/files
Please reload this pagehttps://github.com/python/cpython/pull/8659/files
[3.7] bpo-34247: Fix Python 3.7 initialization https://github.com/python/cpython/pull/8659/files#top
Show all changes 5 commits https://github.com/python/cpython/pull/8659/files
463792e bpo-34247: Fix Python initialization vstinner Aug 2, 2018 https://github.com/python/cpython/pull/8659/commits/463792ec3bea09164c4eb963f04494a9af94c74a
249aba7 Fix compilation on Windows vstinner Aug 3, 2018 https://github.com/python/cpython/pull/8659/commits/249aba73c779157c664e6c2ba9bdd9d790d8dd55
1533c6e Cannot test _Py_CheckHashBasedPycsMode vstinner Aug 3, 2018 https://github.com/python/cpython/pull/8659/commits/1533c6ed641c7441f338d7e17ae1bb54ba9abe00
e219dca Fix _freeze_importlib.c vstinner Aug 3, 2018 https://github.com/python/cpython/pull/8659/commits/e219dca7993f9fde9a56754c2eab2463a3595494
6c3b5ec Add NEWS entry for bpo-34247 fix vstinner Aug 4, 2018 https://github.com/python/cpython/pull/8659/commits/6c3b5ec28b5cd5cb72cded83ed530f2dbac5952b
Clear filters https://github.com/python/cpython/pull/8659/files
Please reload this pagehttps://github.com/python/cpython/pull/8659/files
Please reload this pagehttps://github.com/python/cpython/pull/8659/files
pylifecycle.h https://github.com/python/cpython/pull/8659/files#diff-04cebdfb695b1ad3aa046d76250d4c11ca627afab9e204e106ed79d64a3f5af2
pystate.h https://github.com/python/cpython/pull/8659/files#diff-72fdb9ce4eb86f7a79872b667270cf35110b62609cc8765aa3c795907c99f431
test_cmd_line.py https://github.com/python/cpython/pull/8659/files#diff-128fff16ea63b541718887f5c714e0c1a357414fe1146b4893ef699e8853e3b0
test_embed.py https://github.com/python/cpython/pull/8659/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
2018-08-05-00-21-38.bpo-34247._Sn92u.rst https://github.com/python/cpython/pull/8659/files#diff-e084edbf4a769d6119a60320f9b5c4148865be6b4ce7be0678640b0678da7841
2018-08-03-21-59-06.bpo-34170.v1h_H2.rst https://github.com/python/cpython/pull/8659/files#diff-18d50a65a08346ba063d6eaa3b887d5b4139fdffe082f8b6cc5fde40e0e7f2f3
main.c https://github.com/python/cpython/pull/8659/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
_freeze_importlib.c https://github.com/python/cpython/pull/8659/files#diff-234de3c1e1119df6c7570b71e6acda500058c5691d50dbc893a4ba38073c9c93
_testembed.c https://github.com/python/cpython/pull/8659/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
pylifecycle.c https://github.com/python/cpython/pull/8659/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
Include/pylifecycle.hhttps://github.com/python/cpython/pull/8659/files#diff-04cebdfb695b1ad3aa046d76250d4c11ca627afab9e204e106ed79d64a3f5af2
View file https://github.com/python/cpython/blob/6c3b5ec28b5cd5cb72cded83ed530f2dbac5952b/Include/pylifecycle.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8659/{{ revealButtonHref }}
https://github.com/python/cpython/pull/8659/files#diff-04cebdfb695b1ad3aa046d76250d4c11ca627afab9e204e106ed79d64a3f5af2
https://github.com/python/cpython/pull/8659/files#diff-04cebdfb695b1ad3aa046d76250d4c11ca627afab9e204e106ed79d64a3f5af2
https://github.com/python/cpython/pull/8659/files#diff-04cebdfb695b1ad3aa046d76250d4c11ca627afab9e204e106ed79d64a3f5af2
Include/pystate.hhttps://github.com/python/cpython/pull/8659/files#diff-72fdb9ce4eb86f7a79872b667270cf35110b62609cc8765aa3c795907c99f431
View file https://github.com/python/cpython/blob/6c3b5ec28b5cd5cb72cded83ed530f2dbac5952b/Include/pystate.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8659/{{ revealButtonHref }}
https://github.com/python/cpython/pull/8659/files#diff-72fdb9ce4eb86f7a79872b667270cf35110b62609cc8765aa3c795907c99f431
https://github.com/python/cpython/pull/8659/files#diff-72fdb9ce4eb86f7a79872b667270cf35110b62609cc8765aa3c795907c99f431
Lib/test/test_cmd_line.pyhttps://github.com/python/cpython/pull/8659/files#diff-128fff16ea63b541718887f5c714e0c1a357414fe1146b4893ef699e8853e3b0
View file https://github.com/python/cpython/blob/6c3b5ec28b5cd5cb72cded83ed530f2dbac5952b/Lib/test/test_cmd_line.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8659/{{ revealButtonHref }}
https://github.com/python/cpython/pull/8659/files#diff-128fff16ea63b541718887f5c714e0c1a357414fe1146b4893ef699e8853e3b0
https://github.com/python/cpython/pull/8659/files#diff-128fff16ea63b541718887f5c714e0c1a357414fe1146b4893ef699e8853e3b0
Lib/test/test_embed.pyhttps://github.com/python/cpython/pull/8659/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
View file https://github.com/python/cpython/blob/6c3b5ec28b5cd5cb72cded83ed530f2dbac5952b/Lib/test/test_embed.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8659/{{ revealButtonHref }}
https://github.com/python/cpython/pull/8659/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/8659/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/8659/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/8659/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/8659/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
matrixisehttps://github.com/matrixise
Aug 4, 2018https://github.com/python/cpython/pull/8659/files#r207702533
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/8659/files
vstinnerhttps://github.com/vstinner
Aug 4, 2018https://github.com/python/cpython/pull/8659/files#r207707538
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/8659/files
Misc/NEWS.d/next/C API/2018-08-05-00-21-38.bpo-34247._Sn92u.rsthttps://github.com/python/cpython/pull/8659/files#diff-e084edbf4a769d6119a60320f9b5c4148865be6b4ce7be0678640b0678da7841
View file https://github.com/python/cpython/blob/6c3b5ec28b5cd5cb72cded83ed530f2dbac5952b/Misc/NEWS.d/next/C%20API/2018-08-05-00-21-38.bpo-34247._Sn92u.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8659/{{ revealButtonHref }}
Misc/NEWS.d/next/Core and Builtins/2018-08-03-21-59-06.bpo-34170.v1h_H2.rsthttps://github.com/python/cpython/pull/8659/files#diff-18d50a65a08346ba063d6eaa3b887d5b4139fdffe082f8b6cc5fde40e0e7f2f3
View file https://github.com/python/cpython/blob/6c3b5ec28b5cd5cb72cded83ed530f2dbac5952b/Misc/NEWS.d/next/Core%20and%20Builtins/2018-08-03-21-59-06.bpo-34170.v1h_H2.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8659/{{ revealButtonHref }}
ncoghlanhttps://github.com/ncoghlan
Aug 4, 2018https://github.com/python/cpython/pull/8659/files#r207701036
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
bpo-34247https://bugs.python.org/issue?@action=redirect&bpo=34247
Please reload this pagehttps://github.com/python/cpython/pull/8659/files
vstinnerhttps://github.com/vstinner
Aug 4, 2018https://github.com/python/cpython/pull/8659/files#r207721017
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/8659/files
Please reload this pagehttps://github.com/python/cpython/pull/8659/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.