| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:dbcbfc12-5eb3-489b-ffd2-f049dd4f7784 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9E6A:35E4DB:1F24B05:2B14672:6A56AC11 |
| html-safe-nonce | 0ea6735a977f429527e40aa98f6396feb4d980370283ce7a8f914f5e9bfbf78d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTZBOjM1RTREQjoxRjI0QjA1OjJCMTQ2NzI6NkE1NkFDMTEiLCJ2aXNpdG9yX2lkIjoiNjEzMjg4NDMzNjA0MTk2MjUxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f96e6e805db31364b4cf22e1aa22e5453031266723e967e3e06e4b2174164caa |
| hovercard-subject-tag | pull_request:2024410442 |
| 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/123128/files |
| twitter:image | https://avatars.githubusercontent.com/u/28750310?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/28750310?s=400&v=4 |
| og:image:alt | This implements PEP 703 deferred refcounting for LOAD_GLOBAL in an agnostic way using the cases generator. So it won't block full deferring of references in the future.
For now, we need to writ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 13efe7fe8ecc41eda1078cbde8206041ed92bc54e29bcb737e9353dd9c407aad |
| 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 | 5466ebe023a0abf876a1e6c5d7602ee8f5e6a02b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/123128/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F123128%2Ffiles |
| 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%2F123128%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/123128/files |
| Reload | https://github.com/python/cpython/pull/123128/files |
| Reload | https://github.com/python/cpython/pull/123128/files |
| Please reload this page | https://github.com/python/cpython/pull/123128/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/123128/files |
|
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 |
| 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 |
| Fidget-Spinner | https://github.com/Fidget-Spinner |
| python:main | https://github.com/python/cpython/tree/main |
| Fidget-Spinner:deferred_globals_final | https://github.com/Fidget-Spinner/cpython/tree/deferred_globals_final |
|
Conversation
56
| https://github.com/python/cpython/pull/123128 |
|
Commits
18
| https://github.com/python/cpython/pull/123128/commits |
|
Checks
0
| https://github.com/python/cpython/pull/123128/checks |
|
Files changed
| https://github.com/python/cpython/pull/123128/files |
| Please reload this page | https://github.com/python/cpython/pull/123128/files |
|
gh-121459: Deferred LOAD_GLOBAL
| https://github.com/python/cpython/pull/123128/files#top |
|
Show all changes
18 commits
| https://github.com/python/cpython/pull/123128/files |
|
803e9f7
deferred globals
Fidget-Spinner Jul 4, 2024
| https://github.com/python/cpython/pull/123128/commits/803e9f7e6f1eb3dd722d97a40c74e9a073fa24ab |
|
b213b6f
fix merge from upstream
Fidget-Spinner Aug 18, 2024
| https://github.com/python/cpython/pull/123128/commits/b213b6f1bd4f1e4a992786a147b3f18e0de69f13 |
|
11d2fb6
use cases generator to generate stack offsets
Fidget-Spinner Aug 18, 2024
| https://github.com/python/cpython/pull/123128/commits/11d2fb6f6f84d7f5d8ca562f98c271a08f92d4b9 |
|
ea8d855
fix bug
Fidget-Spinner Aug 18, 2024
| https://github.com/python/cpython/pull/123128/commits/ea8d8555406a6b7d726a582ab1a4cf71d1b79940 |
|
af0c032
add type annotations
Fidget-Spinner Aug 18, 2024
| https://github.com/python/cpython/pull/123128/commits/af0c0324fccdc3e4f98d4b98147138f3feb08ee7 |
|
1a431de
Update Objects/dictobject.c
Fidget-Spinner Aug 19, 2024
| https://github.com/python/cpython/pull/123128/commits/1a431de167c6f5c8eb0c46388a40c6aa4b7e48c9 |
|
48bebe9
Update Objects/dictobject.c
Fidget-Spinner Aug 19, 2024
| https://github.com/python/cpython/pull/123128/commits/48bebe9afdcbd9728766598a1057833d4a4c2b4d |
|
6e948b4
Update Objects/dictobject.c
Fidget-Spinner Aug 19, 2024
| https://github.com/python/cpython/pull/123128/commits/6e948b48993479f1781d90465f3424ef79f5995c |
|
e23567a
Address review
Fidget-Spinner Aug 19, 2024
| https://github.com/python/cpython/pull/123128/commits/e23567ae69c026224b85ce7c2f8f7ee14a357004 |
|
dbbebf9
Merge branch 'deferred_globals_final' of github.com:Fidget-Spinner/cp…
Fidget-Spinner Aug 19, 2024
| https://github.com/python/cpython/pull/123128/commits/dbbebf990e91d010b268dba53bfa2bebac629c2f |
|
dbdee10
partially address review
Fidget-Spinner Aug 22, 2024
| https://github.com/python/cpython/pull/123128/commits/dbdee10958477f2a9588310e48314e913df89afb |
|
6d176c0
simplify
Fidget-Spinner Aug 22, 2024
| https://github.com/python/cpython/pull/123128/commits/6d176c011a6daba50535595bad2d7db35ce06501 |
|
4ff9f17
fix some stuff
Fidget-Spinner Aug 22, 2024
| https://github.com/python/cpython/pull/123128/commits/4ff9f177356706a14d8839ee5df4bbc1b8cf0131 |
|
c644ebf
specialize for str and split str, move out NULL checks
Fidget-Spinner Aug 28, 2024
| https://github.com/python/cpython/pull/123128/commits/c644ebffc9af2200ae16eae37400406101bba123 |
|
64f932a
remove allow_unbalanced_parens
Fidget-Spinner Aug 28, 2024
| https://github.com/python/cpython/pull/123128/commits/64f932ac08fee24c62d46e8bf9fd163b24126d51 |
|
bfd4400
Add a & for STACK_ENTRY
Fidget-Spinner Aug 28, 2024
| https://github.com/python/cpython/pull/123128/commits/bfd4400299f21b34b9f68d8d80cd9d5e8e5591e3 |
|
0c1ee7e
Address review
Fidget-Spinner Sep 8, 2024
| https://github.com/python/cpython/pull/123128/commits/0c1ee7e42c71f689dd97392f1abefe44e4db8c0d |
|
ad33dd1
Change to use array instead of STACK_ENTRY
Fidget-Spinner Sep 12, 2024
| https://github.com/python/cpython/pull/123128/commits/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0 |
|
Clear filters
| https://github.com/python/cpython/pull/123128/files |
| Please reload this page | https://github.com/python/cpython/pull/123128/files |
| Please reload this page | https://github.com/python/cpython/pull/123128/files |
|
pycore_ceval.h
| https://github.com/python/cpython/pull/123128/files#diff-9e7eb7e81667528dfa3a35bbf32fe622d4721c3c71385ea0ea2250abbd15d545 |
|
pycore_dict.h
| https://github.com/python/cpython/pull/123128/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4 |
|
dictobject.c
| https://github.com/python/cpython/pull/123128/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
bytecodes.c
| https://github.com/python/cpython/pull/123128/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342 |
|
ceval.c
| https://github.com/python/cpython/pull/123128/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de |
|
executor_cases.c.h
| https://github.com/python/cpython/pull/123128/files#diff-a1c3430c42a66c16e6d2e154491a6da993b187b27c628545a12a02c7b2a06b81 |
|
generated_cases.c.h
| https://github.com/python/cpython/pull/123128/files#diff-4ef46fa654f95502e49a24f7dc8ee31a4cac9b3433fe9cd2b2d4dd78cfbad448 |
|
optimizer_cases.c.h
| https://github.com/python/cpython/pull/123128/files#diff-ed4567b3e67709ec57bf4df91ef058cfcbe00d7da11cd2a75e38241fa1ca99d2 |
| Include/internal/pycore_ceval.h | https://github.com/python/cpython/pull/123128/files#diff-9e7eb7e81667528dfa3a35bbf32fe622d4721c3c71385ea0ea2250abbd15d545 |
|
View file
| https://github.com/Fidget-Spinner/cpython/blob/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0/Include/internal/pycore_ceval.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/123128/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/123128/files#diff-9e7eb7e81667528dfa3a35bbf32fe622d4721c3c71385ea0ea2250abbd15d545 |
| Please reload this page | https://github.com/python/cpython/pull/123128/files |
|
| https://github.com/python/cpython/pull/123128/files#diff-9e7eb7e81667528dfa3a35bbf32fe622d4721c3c71385ea0ea2250abbd15d545 |
| Include/internal/pycore_dict.h | https://github.com/python/cpython/pull/123128/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4 |
|
View file
| https://github.com/Fidget-Spinner/cpython/blob/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0/Include/internal/pycore_dict.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/123128/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/123128/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4 |
|
| https://github.com/python/cpython/pull/123128/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4 |
|
| https://github.com/python/cpython/pull/123128/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4 |
|
| https://github.com/python/cpython/pull/123128/files#diff-47692c69ef97b2d7cf05ad8e0fa2024b575af96abf9bbc5486f71156ab67ede4 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L215 |
| Objects/dictobject.c | https://github.com/python/cpython/pull/123128/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
View file
| https://github.com/Fidget-Spinner/cpython/blob/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0/Objects/dictobject.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/123128/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/123128/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
| https://github.com/python/cpython/pull/123128/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
| https://github.com/python/cpython/pull/123128/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
| https://github.com/python/cpython/pull/123128/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
| Please reload this page | https://github.com/python/cpython/pull/123128/files |
|
| https://github.com/python/cpython/pull/123128/files#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L225 |
| Python/bytecodes.c | https://github.com/python/cpython/pull/123128/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342 |
|
View file
| https://github.com/Fidget-Spinner/cpython/blob/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0/Python/bytecodes.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/123128/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/123128/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342 |
|
| https://github.com/python/cpython/pull/123128/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342 |
|
| https://github.com/python/cpython/pull/123128/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342 |
|
| https://github.com/python/cpython/pull/123128/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L226 |
| Python/ceval.c | https://github.com/python/cpython/pull/123128/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de |
|
View file
| https://github.com/Fidget-Spinner/cpython/blob/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0/Python/ceval.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/123128/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/123128/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de |
| Please reload this page | https://github.com/python/cpython/pull/123128/files |
|
| https://github.com/python/cpython/pull/123128/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de |
|
| https://github.com/python/cpython/pull/123128/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de |
| Python/executor_cases.c.h | https://github.com/python/cpython/pull/123128/files#diff-a1c3430c42a66c16e6d2e154491a6da993b187b27c628545a12a02c7b2a06b81 |
|
View file
| https://github.com/Fidget-Spinner/cpython/blob/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0/Python/executor_cases.c.h |
|
Open in desktop
| https://desktop.github.com |
| how customized files appear on GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/python/cpython/pull/123128/files |
| Python/generated_cases.c.h | https://github.com/python/cpython/pull/123128/files#diff-4ef46fa654f95502e49a24f7dc8ee31a4cac9b3433fe9cd2b2d4dd78cfbad448 |
|
View file
| https://github.com/Fidget-Spinner/cpython/blob/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0/Python/generated_cases.c.h |
|
Open in desktop
| https://desktop.github.com |
| how customized files appear on GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/python/cpython/pull/123128/files |
| Python/optimizer_cases.c.h | https://github.com/python/cpython/pull/123128/files#diff-ed4567b3e67709ec57bf4df91ef058cfcbe00d7da11cd2a75e38241fa1ca99d2 |
|
View file
| https://github.com/Fidget-Spinner/cpython/blob/ad33dd1c40a46942aeacf0bc8e4f40e745a009e0/Python/optimizer_cases.c.h |
|
Open in desktop
| https://desktop.github.com |
| how customized files appear on GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/python/cpython/pull/123128/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 |