René's URL Explorer Experiment


Title: bpo-34170: Rework _PyCoreConfig_Read() to avoid side effect by vstinner · Pull Request #8353 · python/cpython · GitHub

Open Graph Title: bpo-34170: Rework _PyCoreConfig_Read() to avoid side effect by vstinner · Pull Request #8353 · python/cpython

X Title: bpo-34170: Rework _PyCoreConfig_Read() to avoid side effect by vstinner · Pull Request #8353 · python/cpython

Description: Rework _PyCoreConfig_Read() function which reads core configuration to not modify the path configuration. A new _PyCoreConfig_SetPathConfig() function now recreates the path configuration from the core configuration. This function is now called very late in _Py_InitializeCore(), just before calling initimport(). Changes: Add _PyCoreConfig.dll_path Rename _PyPathConfig_Calculate() to _PyPathConfig_Calculate_impl() Replace _PyPathConfig_Init() with _PyPathConfig_Calculate(): the function now requires a _PyPathConfig Add _PyPathConfig_SetGlobal() to set the _Py_path_config global variable. Add _PyCoreConfig_InitPathConfig(): compute the path configuration Add _PyCoreConfig_SetPathConfig(): set path configuration from core configuration Rename wstrlist_append() to _Py_wstrlist_append() https://bugs.python.org/issue34170

Open Graph Description: Rework _PyCoreConfig_Read() function which reads core configuration to not modify the path configuration. A new _PyCoreConfig_SetPathConfig() function now recreates the path configuration from the ...

X Description: Rework _PyCoreConfig_Read() function which reads core configuration to not modify the path configuration. A new _PyCoreConfig_SetPathConfig() function now recreates the path configuration from the ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5c3b1375-afa4-dc4f-8ffe-5104d264ed1b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE518:102A8A:1F68754:2B1F925:6A50270F
html-safe-nonce75e7ee307d62812c441cddc54be3cff1c350982854c4ea4a28e0aa0a87974abe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTE4OjEwMkE4QToxRjY4NzU0OjJCMUY5MjU6NkE1MDI3MEYiLCJ2aXNpdG9yX2lkIjoiNzk5ODI2ODk4Mjk0MjUwODgxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaceb207edef671d7f135d581b9e5cacd8878b50cf70cc4ace4ef0cb964e1f0b8af
hovercard-subject-tagpull_request:202884975
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/8353/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:altRework _PyCoreConfig_Read() function which reads core configuration to not modify the path configuration. A new _PyCoreConfig_SetPathConfig() function now recreates the path configuration from the ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea08040246389072795e3b4e7b33c6d9a0c564eee02e829a809326d67c418b069
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
released1b91b18e7330fc458dfd824c61eaed7daa830d6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/8353/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F8353%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%2F8353%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/8353/files
Reloadhttps://github.com/python/cpython/pull/8353/files
Reloadhttps://github.com/python/cpython/pull/8353/files
Please reload this pagehttps://github.com/python/cpython/pull/8353/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/8353/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:masterhttps://github.com/python/cpython/tree/master
Conversation 8 https://github.com/python/cpython/pull/8353
Commits 6 https://github.com/python/cpython/pull/8353/commits
Checks 0 https://github.com/python/cpython/pull/8353/checks
Files changed https://github.com/python/cpython/pull/8353/files
Please reload this pagehttps://github.com/python/cpython/pull/8353/files
bpo-34170: Rework _PyCoreConfig_Read() to avoid side effect https://github.com/python/cpython/pull/8353/files#top
Show all changes 6 commits https://github.com/python/cpython/pull/8353/files
eb2f02b bpo-34170: Rework _PyCoreConfig_Read() to avoid side effect vstinner Jul 20, 2018 https://github.com/python/cpython/pull/8353/commits/eb2f02b9b64b582fb1f4d961d1284d7be058c1de
c516906 Fix freeze_importlib vstinner Jul 20, 2018 https://github.com/python/cpython/pull/8353/commits/c51690662b056f62eb9220a32f6abdab1147680b
fdf5d4c _PyCoreConfig_InitPathConfig() uses copy_wstr() vstinner Jul 20, 2018 https://github.com/python/cpython/pull/8353/commits/fdf5d4c22a8202947ff55f0c4ef20d111fa73eb9
29a87b4 _Py_wstrlist_append() handles int overflow vstinner Jul 20, 2018 https://github.com/python/cpython/pull/8353/commits/29a87b4787594a5e23fde21b9e3adfe73b808f5e
7b633f0 Cleanup API vstinner Jul 20, 2018 https://github.com/python/cpython/pull/8353/commits/7b633f00d899a54fa6a982ff929bedcc8feb7cb1
f004bea Cleanup wstrlist_join() vstinner Jul 20, 2018 https://github.com/python/cpython/pull/8353/commits/f004bea57d4f72263c24a9d8b669cd10c5263c58
Clear filters https://github.com/python/cpython/pull/8353/files
Please reload this pagehttps://github.com/python/cpython/pull/8353/files
Please reload this pagehttps://github.com/python/cpython/pull/8353/files
pystate.h https://github.com/python/cpython/pull/8353/files#diff-bccfc01bd96b58c022dde77486b8a896cbb31d7581bd4a4156b32c3654afe468
pylifecycle.h https://github.com/python/cpython/pull/8353/files#diff-04cebdfb695b1ad3aa046d76250d4c11ca627afab9e204e106ed79d64a3f5af2
pystate.h https://github.com/python/cpython/pull/8353/files#diff-72fdb9ce4eb86f7a79872b667270cf35110b62609cc8765aa3c795907c99f431
getpath.c https://github.com/python/cpython/pull/8353/files#diff-ad0a6e4fd367f158f5af826b512704cef7808813c3a3a474f9d8a10b5ef75e45
main.c https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
getpathp.c https://github.com/python/cpython/pull/8353/files#diff-e1cdb17c354ff4dd236c080589691ab82f18cd5a76ac34968b596512ceea9c6b
pathconfig.c https://github.com/python/cpython/pull/8353/files#diff-09327e0a986b458413322c8ef2c9f7ff06f191cc79520787f95db7598e633415
pylifecycle.c https://github.com/python/cpython/pull/8353/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
Include/internal/pystate.hhttps://github.com/python/cpython/pull/8353/files#diff-bccfc01bd96b58c022dde77486b8a896cbb31d7581bd4a4156b32c3654afe468
View file https://github.com/python/cpython/blob/f004bea57d4f72263c24a9d8b669cd10c5263c58/Include/internal/pystate.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8353/{{ revealButtonHref }}
https://github.com/python/cpython/pull/8353/files#diff-bccfc01bd96b58c022dde77486b8a896cbb31d7581bd4a4156b32c3654afe468
https://github.com/python/cpython/pull/8353/files#diff-bccfc01bd96b58c022dde77486b8a896cbb31d7581bd4a4156b32c3654afe468
https://github.com/python/cpython/pull/8353/files#diff-bccfc01bd96b58c022dde77486b8a896cbb31d7581bd4a4156b32c3654afe468
Include/pylifecycle.hhttps://github.com/python/cpython/pull/8353/files#diff-04cebdfb695b1ad3aa046d76250d4c11ca627afab9e204e106ed79d64a3f5af2
View file https://github.com/python/cpython/blob/f004bea57d4f72263c24a9d8b669cd10c5263c58/Include/pylifecycle.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8353/{{ revealButtonHref }}
https://github.com/python/cpython/pull/8353/files#diff-04cebdfb695b1ad3aa046d76250d4c11ca627afab9e204e106ed79d64a3f5af2
https://github.com/python/cpython/pull/8353/files#diff-04cebdfb695b1ad3aa046d76250d4c11ca627afab9e204e106ed79d64a3f5af2
https://github.com/python/cpython/pull/8353/files#diff-04cebdfb695b1ad3aa046d76250d4c11ca627afab9e204e106ed79d64a3f5af2
https://github.com/python/cpython/pull/8353/files#diff-04cebdfb695b1ad3aa046d76250d4c11ca627afab9e204e106ed79d64a3f5af2
Include/pystate.hhttps://github.com/python/cpython/pull/8353/files#diff-72fdb9ce4eb86f7a79872b667270cf35110b62609cc8765aa3c795907c99f431
View file https://github.com/python/cpython/blob/f004bea57d4f72263c24a9d8b669cd10c5263c58/Include/pystate.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8353/{{ revealButtonHref }}
https://github.com/python/cpython/pull/8353/files#diff-72fdb9ce4eb86f7a79872b667270cf35110b62609cc8765aa3c795907c99f431
https://github.com/python/cpython/pull/8353/files#diff-72fdb9ce4eb86f7a79872b667270cf35110b62609cc8765aa3c795907c99f431
Modules/getpath.chttps://github.com/python/cpython/pull/8353/files#diff-ad0a6e4fd367f158f5af826b512704cef7808813c3a3a474f9d8a10b5ef75e45
View file https://github.com/python/cpython/blob/f004bea57d4f72263c24a9d8b669cd10c5263c58/Modules/getpath.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8353/{{ revealButtonHref }}
https://github.com/python/cpython/pull/8353/files#diff-ad0a6e4fd367f158f5af826b512704cef7808813c3a3a474f9d8a10b5ef75e45
https://github.com/python/cpython/pull/8353/files#diff-ad0a6e4fd367f158f5af826b512704cef7808813c3a3a474f9d8a10b5ef75e45
Modules/main.chttps://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
View file https://github.com/python/cpython/blob/f004bea57d4f72263c24a9d8b669cd10c5263c58/Modules/main.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8353/{{ revealButtonHref }}
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
https://github.com/python/cpython/pull/8353/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
PC/getpathp.chttps://github.com/python/cpython/pull/8353/files#diff-e1cdb17c354ff4dd236c080589691ab82f18cd5a76ac34968b596512ceea9c6b
View file https://github.com/python/cpython/blob/f004bea57d4f72263c24a9d8b669cd10c5263c58/PC/getpathp.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/8353/{{ revealButtonHref }}
https://github.com/python/cpython/pull/8353/files#diff-e1cdb17c354ff4dd236c080589691ab82f18cd5a76ac34968b596512ceea9c6b
https://github.com/python/cpython/pull/8353/files#diff-e1cdb17c354ff4dd236c080589691ab82f18cd5a76ac34968b596512ceea9c6b
Please reload this pagehttps://github.com/python/cpython/pull/8353/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.