| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7a334ff2-c71c-b9ed-7656-4749a43c56c5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B7FC:181900:1480C1D:1C33C6B:6969FF11 |
| html-safe-nonce | f9af18557b3b7e34ec1313e917d27e418bc9b9c0a51451bc20e92e681481c6ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0ZDOjE4MTkwMDoxNDgwQzFEOjFDMzNDNkI6Njk2OUZGMTEiLCJ2aXNpdG9yX2lkIjoiODE3MzYzNTU1MTM0NDg1Mjc1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e5f622b323fdd9e3956596763cb5c8fcad33ae2e6a878066b561cb3e17339fdf |
| hovercard-subject-tag | pull_request:192564523 |
| 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/7413/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 | This is a quick port to git of a patch I wrote for the issue several years ago. I'm sure I have it mostly okay, but haven't had time yet to check it closely.
https://bugs.python.org/issue... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/7413/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F7413%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%2F7413%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/7413/files |
| Reload | https://github.com/python/cpython/pull/7413/files |
| Reload | https://github.com/python/cpython/pull/7413/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/7413/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/7413/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:master | https://github.com/python/cpython/tree/master |
| ericsnowcurrently:typeobj-doc | https://github.com/ericsnowcurrently/cpython/tree/typeobj-doc |
|
Conversation
51
| https://github.com/python/cpython/pull/7413 |
|
Commits
43
| https://github.com/python/cpython/pull/7413/commits |
|
Checks
0
| https://github.com/python/cpython/pull/7413/checks |
|
Files changed
| https://github.com/python/cpython/pull/7413/files |
| Please reload this page | https://github.com/python/cpython/pull/7413/files |
|
bpo-17045: Improve C-API doc for PyTypeObject.
| https://github.com/python/cpython/pull/7413/files#top |
|
Show all changes
43 commits
| https://github.com/python/cpython/pull/7413/files |
|
27612d1
Improve C-API doc for PyTypeObject.
ericsnowcurrently Jun 4, 2018
| https://github.com/python/cpython/pull/7413/commits/27612d1b42a02cbab406a6a8172be28f231bed8a |
|
04b4852
Fix up the quick reference table.
ericsnowcurrently Jun 5, 2018
| https://github.com/python/cpython/pull/7413/commits/04b48526e2e91b8c2531672ac22884af1ecc63a5 |
|
e1aced8
Avoid accidental bold.
ericsnowcurrently Jun 5, 2018
| https://github.com/python/cpython/pull/7413/commits/e1aced83aa5b64428c1e5d44c4776fad92b051c2 |
|
337c932
Fix typos.
ericsnowcurrently Jun 5, 2018
| https://github.com/python/cpython/pull/7413/commits/337c9322286f6b76532b95392036fc4ff40a1339 |
|
af5733d
Add markup for NULL.
ericsnowcurrently Jun 5, 2018
| https://github.com/python/cpython/pull/7413/commits/af5733de28e1790a642fa5de6665a5d8540945fe |
|
4c923e8
Add markup for __dict__.
ericsnowcurrently Jun 5, 2018
| https://github.com/python/cpython/pull/7413/commits/4c923e8995e6bd31525230fed840034f3dc0ef7c |
|
3dbba8c
Add markup in the typedefs table.
ericsnowcurrently Jun 5, 2018
| https://github.com/python/cpython/pull/7413/commits/3dbba8c57ae8101387b28645eead3be78c72d06b |
|
490b6ab
Add missing markup.
ericsnowcurrently Jun 5, 2018
| https://github.com/python/cpython/pull/7413/commits/490b6abb7f6f629b1822512bf629cc7eac0339a7 |
|
ea81fc2
Do not worry about tp_del.
ericsnowcurrently Jun 5, 2018
| https://github.com/python/cpython/pull/7413/commits/ea81fc22a0b147a3e3cbe5616d86210675826613 |
|
0e591e6
Fix inheritance for tp_as_async.
ericsnowcurrently Jun 5, 2018
| https://github.com/python/cpython/pull/7413/commits/0e591e6073520a59fbc7f4896cc87a83c09a6d93 |
|
46233dc
Fix inheritance for tp_hash.
ericsnowcurrently Jun 5, 2018
| https://github.com/python/cpython/pull/7413/commits/46233dc048336f5fc9fcd0247421af9886e42c01 |
|
414448f
Clarify tp_hash when NULL.
ericsnowcurrently Jun 5, 2018
| https://github.com/python/cpython/pull/7413/commits/414448f683becb8a2b8294ebd517bac84b4ffa98 |
|
356012d
Do not refer to _Py_HashPointer.
ericsnowcurrently Jun 5, 2018
| https://github.com/python/cpython/pull/7413/commits/356012d69e7d79110ab26c1785aec4e8c5f34d8d |
|
f4d6500
Drop duplicate info about PyGetSetDef.
ericsnowcurrently Jun 5, 2018
| https://github.com/python/cpython/pull/7413/commits/f4d6500dbd3abbeed109717ec744812866fbcabb |
|
a3021d1
Fix the anchor for tp_as_async.
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/a3021d12af24a502f4c9adbdd09642bfc33ae7a3 |
|
39a19c8
Move the quick-ref table legend up below the table.
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/39a19c8c91705f9d97af2c7bd94eada0ebab7c12 |
|
305468b
Add links to typedef names in the summary table.
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/305468b9d29420357f286b338a722421214941bb |
|
221181c
Move the slot typedefs table to the quick reference section.
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/221181c9dc39a3cb0ec78cf69df9bae4a4adb8ba |
|
c35b627
Fix the table of contents.
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/c35b627c3725d0d5120c754aae6d7984783ddd93 |
|
6759ac7
Add more "info" columns to the tp slots table.
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/6759ac71a95f7ea4ca734e3fe63ffa2e6f55311f |
|
e4994d3
tp_finalize is not internal-only.
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/e4994d339453ed1c949dd380f014ca8a5c7e4edf |
|
cd276bd
Fix table info and add columns.
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/cd276bda85c2857485e91b05bdd791967715cf6b |
|
df5f9ae
Fix table column widths.
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/df5f9aea5426b6cfb3a1feec1d5b26e0d82fc8fb |
|
ce81b38
Fix the note about inheritance through attr lookup.
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/ce81b3860d92aad4335b94ee60764a2032bb2826 |
|
5264f37
Add a placeholder for common cases in the quick ref.
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/5264f37cdc448f66d7ebd260a485b0633da35873 |
|
7f66703
Stub out the type slot typedefs.
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/7f667030ad8f98c28d37c29979585985818db61c |
|
7ba9e24
Add the missing type slot descriptions.
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/7ba9e24a1e9fb9f4ba0e1b2e361ba8221f125685 |
|
8ad1cbe
Drop the "Default" section from type slots that do not need it.
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/8ad1cbe25d5460e458eb10535e761fbd3f6bf7ab |
|
95af724
Add a column for corresponding special method names.
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/95af724fc094ac1b524daafc3bda971aa06969c8 |
|
bbbbae0
Add a table for the "sub-slots".
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/bbbbae079feb0bd15d08739a9f4dcbb3eedf7dfc |
|
c67b704
minor cleanup
ericsnowcurrently Jun 6, 2018
| https://github.com/python/cpython/pull/7413/commits/c67b7044961dd6e159b75499632ec77edad3e117 |
|
3b7c312
Fill out the slot typedef descriptions.
ericsnowcurrently Jun 7, 2018
| https://github.com/python/cpython/pull/7413/commits/3b7c3122a629c31ef3c2f509c31321701407ae7b |
|
00852e5
Drop trailing parens in pseudo-call.
ericsnowcurrently Jun 7, 2018
| https://github.com/python/cpython/pull/7413/commits/00852e52189babf369be6db86f207c9cea56354a |
|
9d02687
Do not use a ref in a code block.
ericsnowcurrently Jun 7, 2018
| https://github.com/python/cpython/pull/7413/commits/9d0268720ff7b3aa01a79eaea68a6840ee2af24a |
|
71dfb1d
Add a NEWS entry.
ericsnowcurrently Jun 7, 2018
| https://github.com/python/cpython/pull/7413/commits/71dfb1d9236928e9034ef66fce5ebe4561ce4c5c |
|
3d74a2c
Add examples.
ericsnowcurrently Jun 8, 2018
| https://github.com/python/cpython/pull/7413/commits/3d74a2cc0dc29e17240a7a54c61c6e1f5a9db9bf |
|
c30dec3
Move the examples to the bottom.
ericsnowcurrently Jun 8, 2018
| https://github.com/python/cpython/pull/7413/commits/c30dec32a82608e69f4308c12a926b9161e3a1d0 |
|
ae3ad3d
Add a section about heap types.
ericsnowcurrently Jun 8, 2018
| https://github.com/python/cpython/pull/7413/commits/ae3ad3dc55c8092cec50fe5fb3ba2994bd388efd |
|
349e245
Add a note about tp_base initialization.
ericsnowcurrently Jun 8, 2018
| https://github.com/python/cpython/pull/7413/commits/349e2452344210d89abdea603797c184fc5d8a17 |
|
cef58ea
Use a better convention for required type slots in the table.
ericsnowcurrently Jun 13, 2018
| https://github.com/python/cpython/pull/7413/commits/cef58ea7bce02a098426a3c9609bdb41505b7a2c |
|
6af25b7
Use less confusing phrasing in the table legend.
ericsnowcurrently Jun 13, 2018
| https://github.com/python/cpython/pull/7413/commits/6af25b76cb0ae342de3fb1acce37a36861b3c336 |
|
8d685e7
Fix accidental upper-cases.
ericsnowcurrently Jun 13, 2018
| https://github.com/python/cpython/pull/7413/commits/8d685e71034f13dee4920798fd0a20b5f6f21486 |
|
f2df61d
Use less awkward working for the tp_richcompare default.
ericsnowcurrently Jun 13, 2018
| https://github.com/python/cpython/pull/7413/commits/f2df61db45a4fe907fbb27d58d118ec556c4f1e0 |
|
Clear filters
| https://github.com/python/cpython/pull/7413/files |
| Please reload this page | https://github.com/python/cpython/pull/7413/files |
| Please reload this page | https://github.com/python/cpython/pull/7413/files |
|
typeobj.rst
| https://github.com/python/cpython/pull/7413/files#diff-560c6b0fbef4ddae510a4f11e165d0cd179a52506b470cead404d2b53e48bbe1 |
|
newtypes.rst
| https://github.com/python/cpython/pull/7413/files#diff-fb096b2781b53f449f3853524f1fed5d86b9539ce83c4b3d1085ea220baad3d9 |
|
2018-06-07-08-33-45.bpo-17045.ZNx6KU.rst
| https://github.com/python/cpython/pull/7413/files#diff-bcd8a4e1f43c685e52175729412025fc71dae169f2629872b3b4343f03d743f0 |
| Please reload this page | https://github.com/python/cpython/pull/7413/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 |