René's URL Explorer Experiment


Title: bpo-45211: Remember the stdlib dir during startup. by ericsnowcurrently · Pull Request #28586 · python/cpython · GitHub

Open Graph Title: bpo-45211: Remember the stdlib dir during startup. by ericsnowcurrently · Pull Request #28586 · python/cpython

X Title: bpo-45211: Remember the stdlib dir during startup. by ericsnowcurrently · Pull Request #28586 · python/cpython

Description: During runtime startup we figure out the stdlib dir but currently throw that information away. This PR preserves it and exposes it via PyConfig.stdlib_dir, _Py_GetStdlibDir(), and sys._stdlib_dir....

Open Graph Description: During runtime startup we figure out the stdlib dir but currently throw that information away. This PR preserves it and exposes it via PyConfig.stdlib_dir, _Py_GetStdlibDir(), and sys._stdlib_dir....

X Description: During runtime startup we figure out the stdlib dir but currently throw that information away. This PR preserves it and exposes it via PyConfig.stdlib_dir, _Py_GetStdlibDir(), and sys._stdlib_dir....

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

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:70f6d033-4f56-ccf8-140c-6e64ef7664e9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB10A:1C7458:86B4F9A:B1AFAF5:696DE7E3
html-safe-nonce9614657f888b945fd5ef3569e8b9e77f3618ac589f227a9192cdfd05a3c3a5a3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTBBOjFDNzQ1ODo4NkI0RjlBOkIxQUZBRjU6Njk2REU3RTMiLCJ2aXNpdG9yX2lkIjoiNTYxMjYzNTg2NjU4NTIyOTI4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6e0e5f30ec605d9f6ee4706d5cf99687d9c84b31c4a2f3c1e4f91c06b1e5bbf5
hovercard-subject-tagpull_request:743756829
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/28586/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/30967e52d50f90d0e0db1c06a3dbf7198816615dea4c65c83d67c41de36e70de/python/cpython/pull/28586
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/30967e52d50f90d0e0db1c06a3dbf7198816615dea4c65c83d67c41de36e70de/python/cpython/pull/28586
og:image:altDuring runtime startup we figure out the stdlib dir but currently throw that information away. This PR preserves it and exposes it via PyConfig.stdlib_dir, _Py_GetStdlibDir(), and sys._stdlib_dir....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameericsnowcurrently
hostnamegithub.com
expected-hostnamegithub.com
None4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064
turbo-cache-controlno-preview
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
release7e5ae23c70136152637ceee8d6faceb35596ec46
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/28586#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F28586
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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%2F28586
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/28586
Reloadhttps://github.com/python/cpython/pull/28586
Reloadhttps://github.com/python/cpython/pull/28586
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/28586
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k 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.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/28586
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 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
Jump to bottomhttps://github.com/python/cpython/pull/28586#issue-comment-box
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:mainhttps://github.com/python/cpython/tree/main
ericsnowcurrently:config-stdlib-dirhttps://github.com/ericsnowcurrently/cpython/tree/config-stdlib-dir
bpo-45211: Remember the stdlib dir during startup. https://github.com/python/cpython/pull/28586#top
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:mainhttps://github.com/python/cpython/tree/main
ericsnowcurrently:config-stdlib-dirhttps://github.com/ericsnowcurrently/cpython/tree/config-stdlib-dir
Conversation 3 https://github.com/python/cpython/pull/28586
Commits 4 https://github.com/python/cpython/pull/28586/commits
Checks 0 https://github.com/python/cpython/pull/28586/checks
Files changed https://github.com/python/cpython/pull/28586/files
Please reload this pagehttps://github.com/python/cpython/pull/28586
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Sep 27, 2021https://github.com/python/cpython/pull/28586#issue-1008509783
Please reload this pagehttps://github.com/python/cpython/pull/28586
https://bugs.python.org/issue45211https://bugs.python.org/issue45211
Please reload this pagehttps://github.com/python/cpython/pull/28586
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
September 27, 2021 13:18https://github.com/python/cpython/pull/28586#commits-pushed-225302c
https://github.com/ericsnowcurrently
Remember the stdlib dir during startup (adding PyConfig.stdlib_dir an…https://github.com/python/cpython/pull/28586/commits/225302c310457dc5ddbc32f345be7c8db348c1cb
225302chttps://github.com/python/cpython/pull/28586/commits/225302c310457dc5ddbc32f345be7c8db348c1cb
https://github.com/ericsnowcurrently
Add sys._get_stdlib_dir().https://github.com/python/cpython/pull/28586/commits/9339925b436c9e94fb81166e34c376da10e89daf
9339925https://github.com/python/cpython/pull/28586/commits/9339925b436c9e94fb81166e34c376da10e89daf
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Sep 27, 2021https://github.com/python/cpython/pull/28586#event-5367820902
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
Sep 27, 2021https://github.com/python/cpython/pull/28586#event-5367821124
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Sep 27, 2021https://github.com/python/cpython/pull/28586#event-5367821221
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Sep 27, 2021https://github.com/python/cpython/pull/28586#event-5367887537
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Sep 27, 2021https://github.com/python/cpython/pull/28586#issuecomment-928209693
@ericsnowcurrentlyhttps://github.com/ericsnowcurrently
9339925https://github.com/python/cpython/commit/9339925b436c9e94fb81166e34c376da10e89daf
Please reload this pagehttps://github.com/python/cpython/pull/28586
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Sep 27, 2021https://github.com/python/cpython/pull/28586#event-5367887687
https://github.com/ericsnowcurrently
On Windows, ignore calculate.home for stdlib_dir.https://github.com/python/cpython/pull/28586/commits/1fe1ff7466c8379f296e23126510e601ac90500b
1fe1ff7https://github.com/python/cpython/pull/28586/commits/1fe1ff7466c8379f296e23126510e601ac90500b
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
force-pushedhttps://github.com/python/cpython/compare/2fe675b55ba72a5753d4cedb66a929a948557ecf..1fe1ff7466c8379f296e23126510e601ac90500b
2fe675bhttps://github.com/python/cpython/commit/2fe675b55ba72a5753d4cedb66a929a948557ecf
1fe1ff7https://github.com/python/cpython/commit/1fe1ff7466c8379f296e23126510e601ac90500b
Compare https://github.com/python/cpython/compare/2fe675b55ba72a5753d4cedb66a929a948557ecf..1fe1ff7466c8379f296e23126510e601ac90500b
September 27, 2021 20:25https://github.com/python/cpython/pull/28586#event-5368139139
https://github.com/ericsnowcurrently
On Windows expect PyConfig.stdlib_dir to be set for the pyvenv.cfg case.https://github.com/python/cpython/pull/28586/commits/ca5266ed06b50e1002000aa996529fbbe1039639
ca5266ehttps://github.com/python/cpython/pull/28586/commits/ca5266ed06b50e1002000aa996529fbbe1039639
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Sep 27, 2021https://github.com/python/cpython/pull/28586#event-5369296297
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Sep 27, 2021https://github.com/python/cpython/pull/28586#issuecomment-928462024
@ericsnowcurrentlyhttps://github.com/ericsnowcurrently
ca5266ehttps://github.com/python/cpython/commit/ca5266ed06b50e1002000aa996529fbbe1039639
Please reload this pagehttps://github.com/python/cpython/pull/28586
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Sep 27, 2021https://github.com/python/cpython/pull/28586#event-5369296445
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
September 28, 2021 00:10https://github.com/python/cpython/pull/28586#event-5369412983
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
code ownerhttps://github.com/python/cpython/blob/95d31370829b7d729667588e0a9943217401ea5b/.github/CODEOWNERS#L107
September 28, 2021 00:10https://github.com/python/cpython/pull/28586#event-5369413006
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Sep 28, 2021https://github.com/python/cpython/pull/28586#issuecomment-929328139
Please reload this pagehttps://github.com/python/cpython/pull/28586
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
0c50b8chttps://github.com/python/cpython/commit/0c50b8c0b8274d54d6b71ed7bd21057d3642f138
Sep 28, 2021https://github.com/python/cpython/pull/28586#event-5375767324
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Sep 28, 2021https://github.com/python/cpython/pull/28586#event-5375767585
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
September 28, 2021 18:18https://github.com/python/cpython/pull/28586#event-5375767813
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Sep 30, 2021 https://github.com/python/cpython/pull/28586#ref-pullrequest-1012351244
bpo-21736: Set __file__ on frozen stdlib modules. #28656 https://github.com/python/cpython/pull/28656
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Oct 14, 2021 https://github.com/python/cpython/pull/28586#ref-pullrequest-1026690679
bpo-45471: Do not set _Py_path_config.stdlib_dir in Py_SetPythonHome(). #28954 https://github.com/python/cpython/pull/28954
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Oct 14, 2021 https://github.com/python/cpython/pull/28586#ref-commit-0bbea07
https://github.com/ericsnowcurrently
bpo-45471https://bugs.python.org/issue?@action=redirect&bpo=45471
: Do not set PyConfig.stdlib_dir in Py_SetPythonHome(). (https://github.com/python/cpython/commit/0bbea0723ee07f9d7ad9745f0e1875718ef38715
gh-…https://github.com/python/cpython/pull/28954
0bbea07https://github.com/python/cpython/commit/0bbea0723ee07f9d7ad9745f0e1875718ef38715
…28954https://github.com/python/cpython/pull/28954
gh-28586https://github.com/python/cpython/pull/28586
bpo-45211https://bugs.python.org/issue?@action=redirect&bpo=45211
https://bugs.python.org/issue45471https://bugs.python.org/issue45471
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Oct 14, 2021 https://github.com/python/cpython/pull/28586#ref-commit-79cf20e
https://github.com/ericsnowcurrently
bpo-21736https://bugs.python.org/issue?@action=redirect&bpo=21736
: Set __file__ on frozen stdlib modules. (https://github.com/python/cpython/commit/79cf20e48d0b5d69d9fac2a0204b5ac2c366066a
gh-28656https://github.com/python/cpython/pull/28656
)https://github.com/python/cpython/commit/79cf20e48d0b5d69d9fac2a0204b5ac2c366066a
https://github.com/python/cpython/commit/79cf20e48d0b5d69d9fac2a0204b5ac2c366066a#comments
79cf20ehttps://github.com/python/cpython/commit/79cf20e48d0b5d69d9fac2a0204b5ac2c366066a
gh-28586https://github.com/python/cpython/pull/28586
gh-28586https://github.com/python/cpython/pull/28586
gh-28655https://github.com/python/cpython/pull/28655
https://bugs.python.org/issue21736https://bugs.python.org/issue21736
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%2F28586
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/28586
https://github.com/ericsnowcurrently
https://github.com/bedevere-bot
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.