| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:94d64ce5-6ca3-2540-4717-5929208d80df |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E338:320B78:117DB52:194E8FB:6A563531 |
| html-safe-nonce | f9db02ea0c9ad62bf5915b931c4ba81ced2e72e5eb9b8126f2b1d734fe2b8567 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzM4OjMyMEI3ODoxMTdEQjUyOjE5NEU4RkI6NkE1NjM1MzEiLCJ2aXNpdG9yX2lkIjoiMTM4OTEzNDIwMjE4MDg3NTU2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ae1df2f30a2dfb4faf899fb659440575e991420a8619a8041eeebdbcba3352ca |
| hovercard-subject-tag | pull_request:3659873785 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/149659/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/3f59a57cf146a5235025d0d15b157fdbc59c2899f92238f2822607eae5ca96dd/python/cpython/pull/149659 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f59a57cf146a5235025d0d15b157fdbc59c2899f92238f2822607eae5ca96dd/python/cpython/pull/149659 |
| og:image:alt | Fix site.addsitedir() to allow re-entrant calls from within startup files. Previously, a .pth file containing an import line that called site.addsitedir() (or a .start entry point doing the same) ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | warsaw |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d78ea552aac0685ca5f006d44f88166cbbf3bb96843f8da0c5a2c0b9908430b |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423b2fb76ac2b90de5ab599b7a76a0d2b2c83f24 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/149659#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F149659 |
| 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%2F149659 |
|
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 |
| Reload | https://github.com/python/cpython/pull/149659 |
| Reload | https://github.com/python/cpython/pull/149659 |
| Reload | https://github.com/python/cpython/pull/149659 |
| Please reload this page | https://github.com/python/cpython/pull/149659 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/149659 |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
35k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.8k
| 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 |
| warsaw | https://github.com/warsaw |
| python:main | https://github.com/python/cpython/tree/main |
| warsaw:gh-149504 | https://github.com/warsaw/cpython/tree/gh-149504 |
| Conversation | https://github.com/python/cpython/pull/149659 |
| Commits9 (9) | https://github.com/python/cpython/pull/149659/commits |
| Checks | https://github.com/python/cpython/pull/149659/checks |
| Files changed | https://github.com/python/cpython/pull/149659/files |
| gh-149504: Fix re-entrancy bug when .pth/.start file invokes site.addsitedir() | https://github.com/python/cpython/pull/149659#top |
| warsaw | https://github.com/warsaw |
| python:main | https://github.com/python/cpython/tree/main |
| warsaw:gh-149504 | https://github.com/warsaw/cpython/tree/gh-149504 |
|
| https://github.com/warsaw |
| warsaw | https://github.com/warsaw |
| May 11, 2026 | https://github.com/python/cpython/pull/149659#issue-4418837782 |
| Please reload this page | https://github.com/python/cpython/pull/149659 |
| #149516 | https://github.com/python/cpython/pull/149516 |
| @ncoghlan | https://github.com/ncoghlan |
| @zsol | https://github.com/zsol |
| @JelleZijlstra | https://github.com/JelleZijlstra |
| [3.15] Re-entrant calls to site.addsitedir() can fail (affecting uv run) #149504 | https://github.com/python/cpython/issues/149504 |
| Please reload this page | https://github.com/python/cpython/pull/149659 |
| warsaw | https://github.com/warsaw |
| May 10, 2026 21:00 | https://github.com/python/cpython/pull/149659#commits-pushed-7108fb7 |
|
| https://github.com/warsaw |
| Add re-entrant tests for | https://github.com/python/cpython/pull/149659/commits/7108fb7024a7cc4ba785401b8cdfc9aab8999dde |
| pythongh-149504 | https://github.com/python/cpython/issues/149504 |
| 7108fb7 | https://github.com/python/cpython/pull/149659/commits/7108fb7024a7cc4ba785401b8cdfc9aab8999dde |
|
| https://github.com/warsaw |
| Add end-to-end integration test coverage | https://github.com/python/cpython/pull/149659/commits/aae5378fc3095f127b69a623e761ae7b2b848326 |
| aae5378 | https://github.com/python/cpython/pull/149659/commits/aae5378fc3095f127b69a623e761ae7b2b848326 |
|
| https://github.com/warsaw |
| Implement a state class to process .pth and .start files | https://github.com/python/cpython/pull/149659/commits/dc96d5d726a9864eb871feb5a4b2a4989153722b |
| dc96d5d | https://github.com/python/cpython/pull/149659/commits/dc96d5d726a9864eb871feb5a4b2a4989153722b |
| python#149504 | https://github.com/python/cpython/issues/149504 |
|
| https://github.com/warsaw |
| Add a blurb | https://github.com/python/cpython/pull/149659/commits/c6cfcb03f80b563fdb40040b87c39eedafcf2b14 |
| c6cfcb0 | https://github.com/python/cpython/pull/149659/commits/c6cfcb03f80b563fdb40040b87c39eedafcf2b14 |
|
| https://github.com/warsaw |
| One small round of cleanup. | https://github.com/python/cpython/pull/149659/commits/04b67f7d8e9752f11781c67f78cd766693d393f2 |
| 04b67f7 | https://github.com/python/cpython/pull/149659/commits/04b67f7d8e9752f11781c67f78cd766693d393f2 |
| https://github.com/warsaw |
| warsaw | https://github.com/warsaw |
| FFY00 | https://github.com/FFY00 |
| code owner | https://github.com/python/cpython/blob/f23a1837d7156c4c478528321a423eae2b31e4bf/.github/CODEOWNERS#L576 |
| May 11, 2026 07:18 | https://github.com/python/cpython/pull/149659#event-25370051209 |
| https://github.com/warsaw |
| warsaw | https://github.com/warsaw |
| May 11, 2026 | https://github.com/python/cpython/pull/149659#event-25370055015 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| May 11, 2026 | https://github.com/python/cpython/pull/149659#event-25370055489 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
May 11, 2026
| https://github.com/python/cpython/pull/149659#ref-issue-4400801061 |
|
[3.15] Re-entrant calls to site.addsitedir() can fail (affecting uv run)
#149504
| https://github.com/python/cpython/issues/149504 |
| https://github.com/warsaw |
| warsaw | https://github.com/warsaw |
| JelleZijlstra | https://github.com/JelleZijlstra |
| StanFromIreland | https://github.com/StanFromIreland |
| ncoghlan | https://github.com/ncoghlan |
| May 11, 2026 07:19 | https://github.com/python/cpython/pull/149659#event-25370081703 |
|
| https://github.com/warsaw |
| Merge branch 'main' into | https://github.com/python/cpython/pull/149659/commits/c38ec2b268b1228acb3a706f6d3d057fbf258347 |
| pythongh-149504 | https://github.com/python/cpython/issues/149504 |
| c38ec2b | https://github.com/python/cpython/pull/149659/commits/c38ec2b268b1228acb3a706f6d3d057fbf258347 |
| https://github.com/zsol |
| zsol | https://github.com/zsol |
|
May 11, 2026
| https://github.com/python/cpython/pull/149659#pullrequestreview-4262380747 |
|
View reviewed changes
| https://github.com/python/cpython/pull/149659/files/9c488d71ccb4a0cd18a5043040a59f4ffb63fea3 |
| zsol | https://github.com/zsol |
| https://github.com/python/cpython/pull/149659#pullrequestreview-4262380747 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #149516 | https://github.com/python/cpython/pull/149516 |
| Please reload this page | https://github.com/python/cpython/pull/149659 |
|
| https://github.com/warsaw |
| Merge branch 'main' into | https://github.com/python/cpython/pull/149659/commits/ea344462b0a5687f18d9bc83e9dc46d14211a4d1 |
| pythongh-149504 | https://github.com/python/cpython/issues/149504 |
| ea34446 | https://github.com/python/cpython/pull/149659/commits/ea344462b0a5687f18d9bc83e9dc46d14211a4d1 |
| https://github.com/JelleZijlstra |
| JelleZijlstra | https://github.com/JelleZijlstra |
| May 11, 2026 | https://github.com/python/cpython/pull/149659#issuecomment-4422553284 |
| Please reload this page | https://github.com/python/cpython/pull/149659 |
| https://github.com/warsaw |
| warsaw | https://github.com/warsaw |
| May 11, 2026 | https://github.com/python/cpython/pull/149659#issuecomment-4422717751 |
| @zsol | https://github.com/zsol |
| Please reload this page | https://github.com/python/cpython/pull/149659 |
| https://github.com/warsaw |
| warsaw | https://github.com/warsaw |
|
May 12, 2026
| https://github.com/python/cpython/pull/149659#ref-pullrequest-4409344113 |
|
gh-75723: Fix double evaluation of .pth and .site files in venvs
#149583
| https://github.com/python/cpython/pull/149583 |
| warsaw | https://github.com/warsaw |
| May 12, 2026 13:02 | https://github.com/python/cpython/pull/149659#commits-pushed-558ece4 |
|
| https://github.com/warsaw |
| Merge branch 'main' into | https://github.com/python/cpython/pull/149659/commits/558ece4be223242a69a397fda8a636e225624f3a |
| pythongh-149504 | https://github.com/python/cpython/issues/149504 |
| 558ece4 | https://github.com/python/cpython/pull/149659/commits/558ece4be223242a69a397fda8a636e225624f3a |
|
| https://github.com/warsaw |
| Merge branch 'main' into | https://github.com/python/cpython/pull/149659/commits/9c488d71ccb4a0cd18a5043040a59f4ffb63fea3 |
| pythongh-149504 | https://github.com/python/cpython/issues/149504 |
| 9c488d7 | https://github.com/python/cpython/pull/149659/commits/9c488d71ccb4a0cd18a5043040a59f4ffb63fea3 |
| https://github.com/warsaw |
| warsaw | https://github.com/warsaw |
| May 13, 2026 15:54 | https://github.com/python/cpython/pull/149659#event-25489989564 |
| https://github.com/warsaw |
| warsaw | https://github.com/warsaw |
| b162307 | https://github.com/python/cpython/commit/b162307d7f216e87976d76c9b8f4a932961cb2d4 |
| May 13, 2026 | https://github.com/python/cpython/pull/149659#event-25492039363 |
| Please reload this page | https://github.com/python/cpython/pull/149659 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| May 13, 2026 | https://github.com/python/cpython/pull/149659#event-25492042334 |
| https://github.com/warsaw |
| warsaw | https://github.com/warsaw |
|
3.15
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.15 |
|
needs backport to 3.15
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22 |
| May 13, 2026 | https://github.com/python/cpython/pull/149659#event-25495751201 |
| https://github.com/apps/miss-islington-app |
| miss-islington-app | https://github.com/apps/miss-islington-app |
| May 13, 2026 | https://github.com/python/cpython/pull/149659#issuecomment-4444087465 |
| @warsaw | https://github.com/warsaw |
| Please reload this page | https://github.com/python/cpython/pull/149659 |
| https://github.com/apps/miss-islington-app |
| miss-islington-app | https://github.com/apps/miss-islington-app |
| May 13, 2026 | https://github.com/python/cpython/pull/149659#issuecomment-4444087899 |
| @warsaw | https://github.com/warsaw |
| cherry_picker | https://pypi.org/project/cherry-picker/ |
| Please reload this page | https://github.com/python/cpython/pull/149659 |
| https://github.com/warsaw |
| warsaw | https://github.com/warsaw |
| May 13, 2026 18:29 | https://github.com/python/cpython/pull/149659#event-25495850275 |
| https://github.com/warsaw |
| warsaw | https://github.com/warsaw |
|
May 13, 2026
| https://github.com/python/cpython/pull/149659#ref-pullrequest-4440515939 |
|
[3.15] gh-149504: Fix re-entrancy bug when .pth/.start file invokes site.add sitedir() (#149659)
#149799
| https://github.com/python/cpython/pull/149799 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
| May 13, 2026 | https://github.com/python/cpython/pull/149659#issuecomment-4444443962 |
| GH-149799 | https://github.com/python/cpython/pull/149799 |
| 3.15 branch | https://github.com/python/cpython/tree/3.15 |
| Please reload this page | https://github.com/python/cpython/pull/149659 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
needs backport to 3.15
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22 |
| May 13, 2026 | https://github.com/python/cpython/pull/149659#event-25497411148 |
| https://github.com/zsol |
| zsol | https://github.com/zsol |
|
May 13, 2026
| https://github.com/python/cpython/pull/149659#ref-pullrequest-4440723205 |
|
Remove site startup patch
astral-sh/python-build-standalone#1130
| https://github.com/astral-sh/python-build-standalone/pull/1130 |
| warsaw | https://github.com/warsaw |
|
May 13, 2026
| https://github.com/python/cpython/pull/149659#ref-commit-45fc9ac |
|
| https://github.com/warsaw |
| [3.15] | https://github.com/python/cpython/commit/45fc9acb8cffd4009aedb8fdf2fce2add89f38bb |
| gh-149504 | https://github.com/python/cpython/issues/149504 |
| : Fix re-entrancy bug when .pth/.start file invokes s… | https://github.com/python/cpython/commit/45fc9acb8cffd4009aedb8fdf2fce2add89f38bb |
| 45fc9ac | https://github.com/python/cpython/commit/45fc9acb8cffd4009aedb8fdf2fce2add89f38bb |
| #149659 | https://github.com/python/cpython/pull/149659 |
| #149799 | https://github.com/python/cpython/pull/149799 |
| gh-149504 | https://github.com/python/cpython/issues/149504 |
| #149659 | https://github.com/python/cpython/pull/149659 |
| gh-149504 | https://github.com/python/cpython/issues/149504 |
| #149504 | https://github.com/python/cpython/issues/149504 |
| b162307 | https://github.com/python/cpython/commit/b162307d7f216e87976d76c9b8f4a932961cb2d4 |
| https://github.com/scoder |
| scoder | https://github.com/scoder |
|
May 19, 2026
| https://github.com/python/cpython/pull/149659#ref-issue-4443883056 |
|
New site.py implementation fails to load .pth files in subprocesses
#149819
| https://github.com/python/cpython/issues/149819 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F149659 |
|
| https://github.com/FFY00 |
|
FFY00
| https://github.com/FFY00 |
|
| https://github.com/ncoghlan |
|
ncoghlan
| https://github.com/ncoghlan |
|
| https://github.com/JelleZijlstra |
|
JelleZijlstra
| https://github.com/JelleZijlstra |
|
| https://github.com/StanFromIreland |
|
StanFromIreland
| https://github.com/StanFromIreland |
|
| https://github.com/zsol |
|
zsol
| https://github.com/zsol |
|
| https://github.com/python/cpython/pull/149659/files/9c488d71ccb4a0cd18a5043040a59f4ffb63fea3 |
|
| https://github.com/warsaw |
|
warsaw
| https://github.com/warsaw |
|
3.15
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.15 |
| Please reload this page | https://github.com/python/cpython/pull/149659 |
|
| https://github.com/warsaw |
|
| https://github.com/JelleZijlstra |
|
| https://github.com/zsol |
|
| 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 |