| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3f3d0382-b4f4-903e-6453-5700a2367ea2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9BE4:2B7A56:473C60:64DB06:696A4FA1 |
| html-safe-nonce | be7f486f1b5928b830ba273d198884749193f0ebeea64e194cd2e883bc8fe4bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkU0OjJCN0E1Njo0NzNDNjA6NjREQjA2OjY5NkE0RkExIiwidmlzaXRvcl9pZCI6IjU3MjY3MTA5MzY3MDExMjg2MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4ceff3d36c7f6593b65a3d47ee15b5ee337a04d788819f8d42f66fd641b0aab4 |
| hovercard-subject-tag | pull_request:750374450 |
| 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/28748/files |
| twitter:image | https://avatars.githubusercontent.com/u/61977?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/61977?s=400&v=4 |
| og:image:alt | This checks the bases of of a type created using the FromSpec
API to inherit the bases metaclasses. The MetaClasses alloc
function will be called as is done in tp_new for classes
created in Python... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| 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 | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/28748/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F28748%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%2F28748%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/28748/files |
| Reload | https://github.com/python/cpython/pull/28748/files |
| Reload | https://github.com/python/cpython/pull/28748/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/28748/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/28748/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:main | https://github.com/python/cpython/tree/main |
| seberg:fromspec-metatype-inheritance | https://github.com/seberg/cpython/tree/fromspec-metatype-inheritance |
|
Conversation
39
| https://github.com/python/cpython/pull/28748 |
|
Commits
19
| https://github.com/python/cpython/pull/28748/commits |
|
Checks
0
| https://github.com/python/cpython/pull/28748/checks |
|
Files changed
| https://github.com/python/cpython/pull/28748/files |
| Please reload this page | https://github.com/python/cpython/pull/28748/files |
|
bpo-45383: Inherit MetaClass from bases in FromSpec API
| https://github.com/python/cpython/pull/28748/files#top |
|
Show all changes
19 commits
| https://github.com/python/cpython/pull/28748/files |
|
67c8a97
BUG: Inherit MetaClass from bases in FromSpec API
seberg Oct 5, 2021
| https://github.com/python/cpython/pull/28748/commits/67c8a97affcb9dbb12f44fdb7767e756b82ea34b |
|
2012aaa
📜🤖 Added by blurb_it.
blurb-it[bot] Oct 5, 2021
| https://github.com/python/cpython/pull/28748/commits/2012aaa637fc4eadc941424782223bf762d018be |
|
881ba13
MAINT: Address review comments
seberg Oct 20, 2021
| https://github.com/python/cpython/pull/28748/commits/881ba13faf8e725947a5a488aec68316c7b19cc1 |
|
6fd1926
Merge in the main branch
encukou May 27, 2022
| https://github.com/python/cpython/pull/28748/commits/6fd192648db52c5d8006204c377ec6eaf485ca29 |
|
aad7456
Disallow non-type metaclasses
encukou May 27, 2022
| https://github.com/python/cpython/pull/28748/commits/aad745657bd69039ea906286a5bacf38174f95cc |
|
aba4208
Use custom metaclasses for the tests, rather than stuff from ctypes
encukou May 27, 2022
| https://github.com/python/cpython/pull/28748/commits/aba4208e975802acb910714f91fe7ee4883fe9a0 |
|
4eb003a
Make PyType_FromMetaclass refcounting easier to follow
encukou May 27, 2022
| https://github.com/python/cpython/pull/28748/commits/4eb003a808c321be0cdf3cacb67131dde835f904 |
|
1ae7969
Adjust documentation
encukou May 27, 2022
| https://github.com/python/cpython/pull/28748/commits/1ae7969b99c50f7b2a2a943e3740f5634d612c41 |
|
6001a33
Fix type warning
encukou May 31, 2022
| https://github.com/python/cpython/pull/28748/commits/6001a3322fc287fe4f4c1dd6a86e25c1d4cbc7d0 |
|
1ad0eca
Remove unused includes from _testcapimodule.c
encukou May 31, 2022
| https://github.com/python/cpython/pull/28748/commits/1ad0ecadb217d42886e9abe4d08c25d76124d743 |
|
ea69819
Use an explicit role in the News entry
encukou May 31, 2022
| https://github.com/python/cpython/pull/28748/commits/ea6981952ad9d418fef890fdfc35f59b69d502b7 |
|
cb1527f
Test that __subclasses__ is updated properly
encukou May 31, 2022
| https://github.com/python/cpython/pull/28748/commits/cb1527ff40107f1d3d64799008ac599ab8e5ad9a |
|
f86d2b5
Document caveats, suggest that PyType_From* is not for user-provided …
encukou May 31, 2022
| https://github.com/python/cpython/pull/28748/commits/f86d2b5a6aa47feb8199ab25b51f3c330594ec2d |
|
93c65e8
Remove unused variable
encukou May 31, 2022
| https://github.com/python/cpython/pull/28748/commits/93c65e81e94d33eee6d1c087c933ac46486dd77c |
|
d881750
Move bases calculation before the allocation
encukou May 31, 2022
| https://github.com/python/cpython/pull/28748/commits/d881750fece555526a24caba53dc1d8a838ee4ec |
|
a7af972
Fix compiler warning for Py_NewRef result
encukou Jun 1, 2022
| https://github.com/python/cpython/pull/28748/commits/a7af972e72ad6ee70fb241f66b511d7feea41b4e |
|
2f47be3
Use PyErr_Occurred rather than a variable
encukou Jun 9, 2022
| https://github.com/python/cpython/pull/28748/commits/2f47be342c056c4008ea111a11cf8dadb5f03d0e |
|
ef6bcce
Use PEP 7 style
encukou Jun 9, 2022
| https://github.com/python/cpython/pull/28748/commits/ef6bccecd78f76f5015e4667f0dcde60f53dc26c |
|
6b31880
Replace duplicate Py_TPFLAGS_BASETYPE check with an assert
encukou Jun 9, 2022
| https://github.com/python/cpython/pull/28748/commits/6b31880cf77b079386844e9d3a43cdcc712d3264 |
|
Clear filters
| https://github.com/python/cpython/pull/28748/files |
| Please reload this page | https://github.com/python/cpython/pull/28748/files |
| Please reload this page | https://github.com/python/cpython/pull/28748/files |
|
type.rst
| https://github.com/python/cpython/pull/28748/files#diff-04d16413dd014ab960bcc7e5f56e3e087da668393f6525d10d099e5a86020016 |
|
2021-10-05-21-59-43.bpo-45383.TVClgf.rst
| https://github.com/python/cpython/pull/28748/files#diff-4991e64f641413046c3b41e720c41817a30e8b14f4f8b839bba7e6404bd107e0 |
|
_testcapimodule.c
| https://github.com/python/cpython/pull/28748/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
|
typeobject.c
| https://github.com/python/cpython/pull/28748/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872 |
| Doc/c-api/type.rst | https://github.com/python/cpython/pull/28748/files#diff-04d16413dd014ab960bcc7e5f56e3e087da668393f6525d10d099e5a86020016 |
|
View file
| https://github.com/seberg/cpython/blob/6b31880cf77b079386844e9d3a43cdcc712d3264/Doc/c-api/type.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/28748/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/28748/files#diff-04d16413dd014ab960bcc7e5f56e3e087da668393f6525d10d099e5a86020016 |
|
| https://github.com/python/cpython/pull/28748/files#diff-04d16413dd014ab960bcc7e5f56e3e087da668393f6525d10d099e5a86020016 |
|
| https://github.com/python/cpython/pull/28748/files#diff-04d16413dd014ab960bcc7e5f56e3e087da668393f6525d10d099e5a86020016 |
|
| https://github.com/python/cpython/pull/28748/files#diff-04d16413dd014ab960bcc7e5f56e3e087da668393f6525d10d099e5a86020016 |
| Misc/NEWS.d/next/C API/2021-10-05-21-59-43.bpo-45383.TVClgf.rst | https://github.com/python/cpython/pull/28748/files#diff-4991e64f641413046c3b41e720c41817a30e8b14f4f8b839bba7e6404bd107e0 |
|
View file
| https://github.com/seberg/cpython/blob/6b31880cf77b079386844e9d3a43cdcc712d3264/Misc/NEWS.d/next/C%20API/2021-10-05-21-59-43.bpo-45383.TVClgf.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/28748/{{ revealButtonHref }} |
| Modules/_testcapimodule.c | https://github.com/python/cpython/pull/28748/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
|
View file
| https://github.com/seberg/cpython/blob/6b31880cf77b079386844e9d3a43cdcc712d3264/Modules/_testcapimodule.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/28748/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/28748/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
|
| https://github.com/python/cpython/pull/28748/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
|
| https://github.com/python/cpython/pull/28748/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
|
| https://github.com/python/cpython/pull/28748/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f |
| Please reload this page | https://github.com/python/cpython/pull/28748/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 |