| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:07262528-62e1-4de1-f42b-a8d2bd841922 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AECE:DE287:12B0146:1903AB9:696AD89B |
| html-safe-nonce | 29863e738656b5dca46f5da9113a845ae8196b6b625689c56b7745fb9e41234b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUNFOkRFMjg3OjEyQjAxNDY6MTkwM0FCOTo2OTZBRDg5QiIsInZpc2l0b3JfaWQiOiIzNjg5NTMxMTI0MTI4MzQwMTIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4a57d5f142fada694bf4615571662114d13a026de1f8f5634568b6902cce8a8a |
| hovercard-subject-tag | pull_request:1787611566 |
| 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/117170/files |
| twitter:image | https://avatars.githubusercontent.com/u/1152074?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1152074?s=400&v=4 |
| og:image:alt | These helpers make it easier to customize and inspect the config used to initialize interpreters. This is especially helpful in our tests. I found inspiration from the PyConfig API for the PyInt... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 524a93f2c1f36522a3b4be4c110467ee4172245d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/117170/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F117170%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| 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 |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| 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/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%2F117170%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/117170/files |
| Reload | https://github.com/python/cpython/pull/117170/files |
| Reload | https://github.com/python/cpython/pull/117170/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/117170/files |
|
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 page | https://github.com/python/cpython/pull/117170/files |
|
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 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 |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
| python:main | https://github.com/python/cpython/tree/main |
| ericsnowcurrently:interpreter-config-helpers | https://github.com/ericsnowcurrently/cpython/tree/interpreter-config-helpers |
|
Conversation
3
| https://github.com/python/cpython/pull/117170 |
|
Commits
19
| https://github.com/python/cpython/pull/117170/commits |
|
Checks
0
| https://github.com/python/cpython/pull/117170/checks |
|
Files changed
| https://github.com/python/cpython/pull/117170/files |
| Please reload this page | https://github.com/python/cpython/pull/117170/files |
|
gh-76785: Add PyInterpreterConfig Helpers
| https://github.com/python/cpython/pull/117170/files#top |
|
Show all changes
19 commits
| https://github.com/python/cpython/pull/117170/files |
|
bdaef6b
Fix a comment.
ericsnowcurrently Mar 7, 2024
| https://github.com/python/cpython/pull/117170/commits/bdaef6b92c0be66cb60f22566fcba1b54237d264 |
|
6342635
Add PyInterpreterConfig helpers.
ericsnowcurrently Mar 21, 2024
| https://github.com/python/cpython/pull/117170/commits/6342635375bfa24bb30e1bfae80fead50a5916b9 |
|
c48dd00
Add config helpers to _testinternalcapi.
ericsnowcurrently Mar 21, 2024
| https://github.com/python/cpython/pull/117170/commits/c48dd00f4ceb53e3c86da3782b90b5e8c160ce60 |
|
0796fe9
Use the new helpers in run_in_subinterp_with_config().
ericsnowcurrently Mar 22, 2024
| https://github.com/python/cpython/pull/117170/commits/0796fe99ad1a4f140f391dba57fa7721a5362553 |
|
8993b41
Move the PyInterpreterConfig utils to their own file.
ericsnowcurrently Mar 22, 2024
| https://github.com/python/cpython/pull/117170/commits/8993b41757dd2c3a250b3bb655d0ee28e55af22d |
|
a113017
_PyInterpreterState_ResolveConfig() -> _PyInterpreterConfig_InitFromS…
ericsnowcurrently Mar 22, 2024
| https://github.com/python/cpython/pull/117170/commits/a1130179235e677cd9c84f4de092b32d1a05d260 |
|
fce72b8
_testinternalcapi.new_interpreter_config() -> _xxsubinterpreters.new_…
ericsnowcurrently Mar 22, 2024
| https://github.com/python/cpython/pull/117170/commits/fce72b818ae9c4c264df5c1bb9b2cc6b0ff0efd0 |
|
c52e484
_testinternalcapi.get_interpreter_config() -> _xxsubinterpreters.get_…
ericsnowcurrently Mar 22, 2024
| https://github.com/python/cpython/pull/117170/commits/c52e484172de0a7dd768f1db8402455d4578f524 |
|
a2983ce
Call _PyInterpreterState_RequireIDRef() in _interpreters._incref().
ericsnowcurrently Mar 22, 2024
| https://github.com/python/cpython/pull/117170/commits/a2983ceda47c57cc5655625a35cddc7dcb3f630d |
|
05a081e
_testinternalcapi.interpreter_incref() -> _interpreters._incref()
ericsnowcurrently Mar 23, 2024
| https://github.com/python/cpython/pull/117170/commits/05a081edecc3085324d8139e1ad28d55247d7292 |
|
8a39bbc
Supporting passing a config to _xxsubinterpreters.create().
ericsnowcurrently Mar 22, 2024
| https://github.com/python/cpython/pull/117170/commits/8a39bbc8a1b2add89d521367cd25da813c71498b |
|
1173cd1
Factor out new_interpreter().
ericsnowcurrently Mar 22, 2024
| https://github.com/python/cpython/pull/117170/commits/1173cd1cbb77b8abfe8d6d2079b9523788ec11c3 |
|
92c11d3
Fix test_import.
ericsnowcurrently Mar 25, 2024
| https://github.com/python/cpython/pull/117170/commits/92c11d388baf7648f781937405c790370bc74674 |
|
edda48d
Fix an outdent.
ericsnowcurrently Mar 25, 2024
| https://github.com/python/cpython/pull/117170/commits/edda48dbe64ccc4d5e67f8eb60d0399935f59ea8 |
|
5f617ed
Call _PyInterpreterState_RequireIDRef() in the right places.
ericsnowcurrently Apr 1, 2024
| https://github.com/python/cpython/pull/117170/commits/5f617ed2ed7a4b5dfb451e5f3846fb72951cb116 |
|
c504c79
Drop an unnecessary _PyInterpreterState_IDInitref() call.
ericsnowcurrently Apr 1, 2024
| https://github.com/python/cpython/pull/117170/commits/c504c79e3eccf8dac373fbf489c1da058691ef11 |
|
8a75c90
Reduce to just the new internal C-API.
ericsnowcurrently Apr 2, 2024
| https://github.com/python/cpython/pull/117170/commits/8a75c9002b0a1f52b64bb7ded652a4a6e48f4e58 |
|
a38cda7
Adjust test_get_config.
ericsnowcurrently Apr 2, 2024
| https://github.com/python/cpython/pull/117170/commits/a38cda7b9a3b7889404b1299ff5db6126260cd25 |
|
cae0482
Remove trailing whitespace.
ericsnowcurrently Apr 2, 2024
| https://github.com/python/cpython/pull/117170/commits/cae0482fb30925440202068823703ac78efc2974 |
|
Clear filters
| https://github.com/python/cpython/pull/117170/files |
| Please reload this page | https://github.com/python/cpython/pull/117170/files |
| Please reload this page | https://github.com/python/cpython/pull/117170/files |
|
pycore_pylifecycle.h
| https://github.com/python/cpython/pull/117170/files#diff-654f110e8bb3ccaa35433482309c4552cd8d74958bfb8b780daa6222f8ab2859 |
|
__init__.py
| https://github.com/python/cpython/pull/117170/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d |
|
test_misc.py
| https://github.com/python/cpython/pull/117170/files#diff-4178d53cac5b09685584df43c65b66797dd4ca4df491b2081565d95ba90aaa36 |
|
__init__.py
| https://github.com/python/cpython/pull/117170/files#diff-ea25b7196846cae64e3ed2b3fb2e1ee420961442fcd801a07bcd9000178bbd58 |
|
Makefile.pre.in
| https://github.com/python/cpython/pull/117170/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
_testinternalcapi.c
| https://github.com/python/cpython/pull/117170/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
_freeze_module.vcxproj
| https://github.com/python/cpython/pull/117170/files#diff-d6e731738eec137782f1f1add8cb8ae28cbe912b6bedfe170eb91e90c388702e |
|
_freeze_module.vcxproj.filters
| https://github.com/python/cpython/pull/117170/files#diff-5e3a79d068beb7e72d27ca9ef4847037a9ee40a43dc221fe9868d41b7a9041ff |
|
pythoncore.vcxproj
| https://github.com/python/cpython/pull/117170/files#diff-4295039788386c2986b811f2a6b59cf088be59822b24b4f1243c9e9b184f65fb |
|
pythoncore.vcxproj.filters
| https://github.com/python/cpython/pull/117170/files#diff-9e715828befc9c50c8b483b06d4923cda0db44f57d0c20e6a6d428ba60bfa0c5 |
|
config_common.h
| https://github.com/python/cpython/pull/117170/files#diff-00c1c240d60b3d584d6a9e4cd9240e80edf8f5847b77b0f4d8e7c18f566bd6fc |
|
initconfig.c
| https://github.com/python/cpython/pull/117170/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b |
|
interpconfig.c
| https://github.com/python/cpython/pull/117170/files#diff-4d045626df4e9cc3bbdfe286f377c2b3a1e871e74d2245fa46a09e43c51d0652 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L310 |
| Include/internal/pycore_pylifecycle.h | https://github.com/python/cpython/pull/117170/files#diff-654f110e8bb3ccaa35433482309c4552cd8d74958bfb8b780daa6222f8ab2859 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/cae0482fb30925440202068823703ac78efc2974/Include/internal/pycore_pylifecycle.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/117170/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/117170/files#diff-654f110e8bb3ccaa35433482309c4552cd8d74958bfb8b780daa6222f8ab2859 |
|
| https://github.com/python/cpython/pull/117170/files#diff-654f110e8bb3ccaa35433482309c4552cd8d74958bfb8b780daa6222f8ab2859 |
| Lib/test/support/__init__.py | https://github.com/python/cpython/pull/117170/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/cae0482fb30925440202068823703ac78efc2974/Lib/test/support/__init__.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/117170/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/117170/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d |
|
| https://github.com/python/cpython/pull/117170/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L349 |
| Lib/test/test_capi/test_misc.py | https://github.com/python/cpython/pull/117170/files#diff-4178d53cac5b09685584df43c65b66797dd4ca4df491b2081565d95ba90aaa36 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/cae0482fb30925440202068823703ac78efc2974/Lib/test/test_capi/test_misc.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/117170/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/117170/files#diff-4178d53cac5b09685584df43c65b66797dd4ca4df491b2081565d95ba90aaa36 |
|
| https://github.com/python/cpython/pull/117170/files#diff-4178d53cac5b09685584df43c65b66797dd4ca4df491b2081565d95ba90aaa36 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L260 |
| Lib/test/test_import/__init__.py | https://github.com/python/cpython/pull/117170/files#diff-ea25b7196846cae64e3ed2b3fb2e1ee420961442fcd801a07bcd9000178bbd58 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/cae0482fb30925440202068823703ac78efc2974/Lib/test/test_import/__init__.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/117170/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/117170/files#diff-ea25b7196846cae64e3ed2b3fb2e1ee420961442fcd801a07bcd9000178bbd58 |
|
| https://github.com/python/cpython/pull/117170/files#diff-ea25b7196846cae64e3ed2b3fb2e1ee420961442fcd801a07bcd9000178bbd58 |
|
| https://github.com/python/cpython/pull/117170/files#diff-ea25b7196846cae64e3ed2b3fb2e1ee420961442fcd801a07bcd9000178bbd58 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L84 |
| Makefile.pre.in | https://github.com/python/cpython/pull/117170/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/cae0482fb30925440202068823703ac78efc2974/Makefile.pre.in |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/117170/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/117170/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/117170/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/117170/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/117170/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
| Please reload this page | https://github.com/python/cpython/pull/117170/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 |