| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:46bd9963-ac70-2019-f1cd-d7a26e141e25 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EB58:9CC2A:18D1B5:22CE3B:696A63E2 |
| html-safe-nonce | 580f7612aa24cd19501d28c8ac52555ba87fb9ff6051c58c7038e387104a485b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjU4OjlDQzJBOjE4RDFCNToyMkNFM0I6Njk2QTYzRTIiLCJ2aXNpdG9yX2lkIjoiODU0MTY2ODM5NTU0MTIyNjQ2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 48639ab4a7a9c2f9eb8718ca76db76e49ec61d95bd966e80859589967f4e26bb |
| hovercard-subject-tag | pull_request:514710173 |
| 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/23124/files |
| twitter:image | https://avatars.githubusercontent.com/u/13780613?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/13780613?s=400&v=4 |
| og:image:alt | Heap types are added to a global state in preparation for module state support.
@corona10 and/or @vstinner, would you mind reviewing this?
https://bugs.python.org/issue40077 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b7735a184970dd9333b2cbe036c8f3c0a9108c64aaa93827c5a64fc70993392 |
| 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 | 87cbd411c2982752221b5751d583a515b23bf5fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/23124/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F23124%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%2F23124%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/23124/files |
| Reload | https://github.com/python/cpython/pull/23124/files |
| Reload | https://github.com/python/cpython/pull/23124/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/23124/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/23124/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 |
| encukou | https://github.com/encukou |
| python:master | https://github.com/python/cpython/tree/master |
| erlend-aasland:bpo-40077/array | https://github.com/erlend-aasland/cpython/tree/bpo-40077/array |
|
Conversation
19
| https://github.com/python/cpython/pull/23124 |
|
Commits
14
| https://github.com/python/cpython/pull/23124/commits |
|
Checks
0
| https://github.com/python/cpython/pull/23124/checks |
|
Files changed
| https://github.com/python/cpython/pull/23124/files |
| Please reload this page | https://github.com/python/cpython/pull/23124/files |
|
bpo-40077: Convert arraymodule to use heap types and establish module state
| https://github.com/python/cpython/pull/23124/files#top |
|
Show all changes
14 commits
| https://github.com/python/cpython/pull/23124/files |
|
75e7622
Convert array type to heap type
Nov 3, 2020
| https://github.com/python/cpython/pull/23124/commits/75e76229a67c5caf8b7147573537222abe6f1302 |
|
7b8e273
Convert array iter type to heap type
Nov 3, 2020
| https://github.com/python/cpython/pull/23124/commits/7b8e273abde2c63a909732e51b3746ba408e193c |
|
3f78766
Establish global state and add types to it
Nov 3, 2020
| https://github.com/python/cpython/pull/23124/commits/3f7876667db0cb463d366b6517275c5590ac7964 |
|
23a582a
Remove unused check macro
Nov 3, 2020
| https://github.com/python/cpython/pull/23124/commits/23a582adcb972e3838ebd3b7ca3fd3eddba1701d |
|
1869a3a
Use local state variables iso. calling get_array_state() all the time
Nov 3, 2020
| https://github.com/python/cpython/pull/23124/commits/1869a3a93d6a64d5bee66db9429f8e09cf3d1ddb |
|
88d1928
Normalize array type names
Nov 3, 2020
| https://github.com/python/cpython/pull/23124/commits/88d19283ae112b1e6a3e2335f0c6b2a79c0a66fd |
|
d0ed2f7
Update clinic
Nov 3, 2020
| https://github.com/python/cpython/pull/23124/commits/d0ed2f7816b9ea591d36adae4cfa29a6530240ba |
|
a5798e2
Add NEWS
Nov 3, 2020
| https://github.com/python/cpython/pull/23124/commits/a5798e2d9c1d779e9005b90408f5ef09ecf4cad0 |
|
c3dfade
Use PyModule_AddType()
Nov 3, 2020
| https://github.com/python/cpython/pull/23124/commits/c3dfade9c4558bcadcbc48e97dd0a7c7ab6f2d7a |
|
aa3bd22
Migrate from global to module state
Nov 3, 2020
| https://github.com/python/cpython/pull/23124/commits/aa3bd22bb83b2a40cae0f5b44ce552f0db4e5bfa |
|
656c5d0
Fix NEWS
Nov 3, 2020
| https://github.com/python/cpython/pull/23124/commits/656c5d070f52937933d1dc8eb93993d4030ad290 |
|
72434ad
Address review comment: adjust naming to reflect time complexity
Nov 4, 2020
| https://github.com/python/cpython/pull/23124/commits/72434ad4651695948a08d71034f5696f3556883c |
|
b86185d
Merge branch 'master' into bpo-40077/array
Dec 16, 2020
| https://github.com/python/cpython/pull/23124/commits/b86185d0b1cb197642fb8b2a345d7c5d2612259c |
|
f864969
Address review: Wrap state exclusively used in asserts in #ifndef NDEBUG
Dec 30, 2020
| https://github.com/python/cpython/pull/23124/commits/f8649699eac6673497be01c4a986f2fc1d144f20 |
|
Clear filters
| https://github.com/python/cpython/pull/23124/files |
| Please reload this page | https://github.com/python/cpython/pull/23124/files |
| Please reload this page | https://github.com/python/cpython/pull/23124/files |
|
2020-11-03-13-46-10.bpo-40077.NfAIdj.rst
| https://github.com/python/cpython/pull/23124/files#diff-4e95c118dd18cb9384649125d658ff948427bb169660b56f5474a036dc120330 |
|
arraymodule.c
| https://github.com/python/cpython/pull/23124/files#diff-a64ccdf7f6d9fe7fbe417fe2d24c7803c152b75640bdc5a6539754aa71bc6a51 |
|
arraymodule.c.h
| https://github.com/python/cpython/pull/23124/files#diff-20115c1d74df91d47a7ddd2d6b6538b22c6bbb49c8f3ce64d47f457e45ab523c |
| Misc/NEWS.d/next/Core and Builtins/2020-11-03-13-46-10.bpo-40077.NfAIdj.rst | https://github.com/python/cpython/pull/23124/files#diff-4e95c118dd18cb9384649125d658ff948427bb169660b56f5474a036dc120330 |
|
View file
| https://github.com/erlend-aasland/cpython/blob/f8649699eac6673497be01c4a986f2fc1d144f20/Misc/NEWS.d/next/Core%20and%20Builtins/2020-11-03-13-46-10.bpo-40077.NfAIdj.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/23124/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/23124/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 |