René's URL Explorer Experiment


Title: bpo-41073: PyType_GetSlot() can now accept static types. by shihai1991 · Pull Request #21931 · python/cpython · GitHub

Open Graph Title: bpo-41073: PyType_GetSlot() can now accept static types. by shihai1991 · Pull Request #21931 · python/cpython

X Title: bpo-41073: PyType_GetSlot() can now accept static types. by shihai1991 · Pull Request #21931 · python/cpython

Description: PyType_GetSlot() can now accept static types. Co-Authored-By: Petr Viktorin encukou@gmail.com https://bugs.python.org/issue41073 Automerge-Triggered-By: GH:encukou

Open Graph Description: PyType_GetSlot() can now accept static types. Co-Authored-By: Petr Viktorin encukou@gmail.com https://bugs.python.org/issue41073 Automerge-Triggered-By: GH:encukou

X Description: PyType_GetSlot() can now accept static types. Co-Authored-By: Petr Viktorin encukou@gmail.com https://bugs.python.org/issue41073 Automerge-Triggered-By: GH:encukou

Opengraph URL: https://github.com/python/cpython/pull/21931

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5a201ed0-12de-f126-a616-8cf6a89a2da1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAB1E:31006B:49B6DB:647F8D:696AAA8E
html-safe-nonce0ae5065d01bf5d7805a9e3495d5613ea3703c8d9f19a34302f40b15c43bcde9c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjFFOjMxMDA2Qjo0OUI2REI6NjQ3RjhEOjY5NkFBQThFIiwidmlzaXRvcl9pZCI6IjExNTM0NjA0MjE2OTE4NzgwMzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdc54dfd552b2f36fd26c2186a369fb3853f240cc3684ffe4d6f233d943036273
hovercard-subject-tagpull_request:471104403
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/21931/files
twitter:imagehttps://avatars.githubusercontent.com/u/9103416?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/9103416?s=400&v=4
og:image:altPyType_GetSlot() can now accept static types. Co-Authored-By: Petr Viktorin encukou@gmail.com https://bugs.python.org/issue41073 Automerge-Triggered-By: GH:encukou
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3eaf9b8cf1badcd7041a8ad480b9d9b28bea0ef1cc821ca9ff20f2cc7f4fe4b9
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedd9a979046e6382bd084e2bd873bf65f797125ff
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/21931/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F21931%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2F21931%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
Reloadhttps://github.com/python/cpython/pull/21931/files
Reloadhttps://github.com/python/cpython/pull/21931/files
Reloadhttps://github.com/python/cpython/pull/21931/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/21931/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 pagehttps://github.com/python/cpython/pull/21931/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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
miss-islingtonhttps://github.com/miss-islington
python:masterhttps://github.com/python/cpython/tree/master
shihai1991:bpo_41073_add_typeslots1https://github.com/shihai1991/cpython/tree/bpo_41073_add_typeslots1
Conversation 49 https://github.com/python/cpython/pull/21931
Commits 27 https://github.com/python/cpython/pull/21931/commits
Checks 0 https://github.com/python/cpython/pull/21931/checks
Files changed https://github.com/python/cpython/pull/21931/files
Please reload this pagehttps://github.com/python/cpython/pull/21931/files
bpo-41073: PyType_GetSlot() can now accept static types. https://github.com/python/cpython/pull/21931/files#top
Show all changes 27 commits https://github.com/python/cpython/pull/21931/files
25e6a1b PyType_GetSlot() could accept static types shihai1991 Jul 8, 2020 https://github.com/python/cpython/pull/21931/commits/25e6a1bcb4d2868c22b825469ad7300b43da446f
7fcf9eb update docs' style shihai1991 Jul 8, 2020 https://github.com/python/cpython/pull/21931/commits/7fcf9ebdf0a860ee142af44d394e2f9b3556fc42
159fc09 use typeslots not in limit apis shihai1991 Jul 9, 2020 https://github.com/python/cpython/pull/21931/commits/159fc09d0fdb88f0fbf5afde01fabe6a8d9b852e
588a847 add test cases to against PyType_GetSlot() shihai1991 Aug 20, 2020 https://github.com/python/cpython/pull/21931/commits/588a847ce5dd479a7a1ee3551ad11c1589dd2119
ec0348d update typeslots.h shihai1991 Aug 20, 2020 https://github.com/python/cpython/pull/21931/commits/ec0348d768d070ac3e9ce2f768d6c602e80777e5
abda762 Add generate statictypeslots feature shihai1991 Aug 22, 2020 https://github.com/python/cpython/pull/21931/commits/abda762e5ec2eeb7809c0f19c4186ddc36cb1eb4
6d94381 revert typeslots.inc to master base shihai1991 Aug 23, 2020 https://github.com/python/cpython/pull/21931/commits/6d943814d733e9cf2b545b9ded605fe36e4e6f7c
eb3907d update get static type slots shihai1991 Sep 2, 2020 https://github.com/python/cpython/pull/21931/commits/eb3907d06c37d19a10906ebff2cbd5edfda90e89
7537c86 Merge remote-tracking branch 'origin/master' into bpo_41073_add_types… shihai1991 Sep 5, 2020 https://github.com/python/cpython/pull/21931/commits/7537c86f9f56afa22a854102403c42cf60d3ac64
fe9f858 Fix compile error shihai1991 Sep 5, 2020 https://github.com/python/cpython/pull/21931/commits/fe9f858dcc0ac8e8aa9ac46339460e7b11003cf4
93d849c Use petr's idea shihai1991 Oct 20, 2020 https://github.com/python/cpython/pull/21931/commits/93d849c00a006311406dd945519de05c0f24577d
5171eb7 apply petr's comment shihai1991 Oct 25, 2020 https://github.com/python/cpython/pull/21931/commits/5171eb745d9e9255e6a64f999836aa7e989b0cbb
b3f992a Merge remote-tracking branch 'origin/master' into bpo_41073_add_types… shihai1991 Oct 29, 2020 https://github.com/python/cpython/pull/21931/commits/b3f992ae50436c978f648b5ef9f9552de389a412
2a6e0f4 update release doc shihai1991 Oct 29, 2020 https://github.com/python/cpython/pull/21931/commits/2a6e0f44fc0355d56edc3fa9c411956fbb22c9f5
a9f66f3 remove new adding slots shihai1991 Oct 30, 2020 https://github.com/python/cpython/pull/21931/commits/a9f66f333db3889b82de79fea47023de54d15b2c
c1844e3 apply petr's comment shihai1991 Nov 1, 2020 https://github.com/python/cpython/pull/21931/commits/c1844e3d1935daf1626519dd4031cfbe7ac27e66
ccdd9b6 Call test_get_statictype_slots in the test suite encukou Nov 3, 2020 https://github.com/python/cpython/pull/21931/commits/ccdd9b6615316bd76f190abba2cfec31e50b3d6e
9194565 Raise exception on the invalid slot 0 encukou Nov 3, 2020 https://github.com/python/cpython/pull/21931/commits/9194565c20282bb97f4707095f19817e47078c8d
708cd82 Use if rather than assert in tests encukou Nov 3, 2020 https://github.com/python/cpython/pull/21931/commits/708cd824f42abad4e0c8d5f131450782be7087c1
b351b2c Add/adjust comments & news entries encukou Nov 3, 2020 https://github.com/python/cpython/pull/21931/commits/b351b2cbd8212bc119b1619f27e6f06834b33fb1
2df9180 Align method definitions in _testcapi encukou Nov 3, 2020 https://github.com/python/cpython/pull/21931/commits/2df91806b9ccdb017ecc0ca96b6360dd19389965
2b077e3 Rewrite the slot-setting code a bit encukou Nov 3, 2020 https://github.com/python/cpython/pull/21931/commits/2b077e3fca543e973400701e125ca45218e1cc0d
943174b Remove the loop in PyType_GetSlot; we already know the position encukou Nov 3, 2020 https://github.com/python/cpython/pull/21931/commits/943174b46a546fcc7b0f7942c7061993a8d0fea3
2d8b57f typeslots.py: Add back code writing null entries encukou Nov 3, 2020 https://github.com/python/cpython/pull/21931/commits/2d8b57f973cca85c4ff8c145abdc652baa8e2ca5
2d72953 Merge remote-tracking branch 'origin/master' into bpo_41073_add_types… shihai1991 Nov 7, 2020 https://github.com/python/cpython/pull/21931/commits/2d729535d5abdab31b4f54e02be0c1cb1fc005b0
6a688d9 Remove redundant test function encukou Nov 10, 2020 https://github.com/python/cpython/pull/21931/commits/6a688d991c759edc0b380ec62cf50110e8d1a419
fc2c06b Merge master branch; regenerate typeslots.inc encukou Nov 10, 2020 https://github.com/python/cpython/pull/21931/commits/fc2c06b08cbf7f8011db9779a8836adf7c6ddaf7
Clear filters https://github.com/python/cpython/pull/21931/files
Please reload this pagehttps://github.com/python/cpython/pull/21931/files
Please reload this pagehttps://github.com/python/cpython/pull/21931/files
type.rst https://github.com/python/cpython/pull/21931/files#diff-04d16413dd014ab960bcc7e5f56e3e087da668393f6525d10d099e5a86020016
3.10.rst https://github.com/python/cpython/pull/21931/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c
2020-07-08-21-01-49.bpo-41073.VqQZON.rst https://github.com/python/cpython/pull/21931/files#diff-381c851816016f20201393671ffe151832d90fb0d8aaa7163fe6963539fa87cd
_testcapimodule.c https://github.com/python/cpython/pull/21931/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
typeobject.c https://github.com/python/cpython/pull/21931/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
typeslots.inc https://github.com/python/cpython/pull/21931/files#diff-8cd667265e8ad05f07f4eec481aef7f33f076636db1c9d1784657f969dd5a152
typeslots.py https://github.com/python/cpython/pull/21931/files#diff-a73636ed7a5100b61845ba62f1fcad6f96852c70d0755788985b5f9b6fea0b47
Doc/c-api/type.rsthttps://github.com/python/cpython/pull/21931/files#diff-04d16413dd014ab960bcc7e5f56e3e087da668393f6525d10d099e5a86020016
View file https://github.com/shihai1991/cpython/blob/fc2c06b08cbf7f8011db9779a8836adf7c6ddaf7/Doc/c-api/type.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/21931/{{ revealButtonHref }}
https://github.com/python/cpython/pull/21931/files#diff-04d16413dd014ab960bcc7e5f56e3e087da668393f6525d10d099e5a86020016
https://github.com/python/cpython/pull/21931/files#diff-04d16413dd014ab960bcc7e5f56e3e087da668393f6525d10d099e5a86020016
Doc/whatsnew/3.10.rsthttps://github.com/python/cpython/pull/21931/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c
View file https://github.com/shihai1991/cpython/blob/fc2c06b08cbf7f8011db9779a8836adf7c6ddaf7/Doc/whatsnew/3.10.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/21931/{{ revealButtonHref }}
https://github.com/python/cpython/pull/21931/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c
https://github.com/python/cpython/pull/21931/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c
Misc/NEWS.d/next/C API/2020-07-08-21-01-49.bpo-41073.VqQZON.rsthttps://github.com/python/cpython/pull/21931/files#diff-381c851816016f20201393671ffe151832d90fb0d8aaa7163fe6963539fa87cd
View file https://github.com/shihai1991/cpython/blob/fc2c06b08cbf7f8011db9779a8836adf7c6ddaf7/Misc/NEWS.d/next/C%20API/2020-07-08-21-01-49.bpo-41073.VqQZON.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/21931/{{ revealButtonHref }}
Modules/_testcapimodule.chttps://github.com/python/cpython/pull/21931/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
View file https://github.com/shihai1991/cpython/blob/fc2c06b08cbf7f8011db9779a8836adf7c6ddaf7/Modules/_testcapimodule.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/21931/{{ revealButtonHref }}
https://github.com/python/cpython/pull/21931/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
https://github.com/python/cpython/pull/21931/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
https://github.com/python/cpython/pull/21931/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
https://github.com/python/cpython/pull/21931/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
Objects/typeobject.chttps://github.com/python/cpython/pull/21931/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
View file https://github.com/shihai1991/cpython/blob/fc2c06b08cbf7f8011db9779a8836adf7c6ddaf7/Objects/typeobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/21931/{{ revealButtonHref }}
https://github.com/python/cpython/pull/21931/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/21931/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/21931/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
Please reload this pagehttps://github.com/python/cpython/pull/21931/files
https://github.com/python/cpython/pull/21931/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/21931/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/21931/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/21931/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/21931/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/21931/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/21931/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
https://github.com/python/cpython/pull/21931/files#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
Objects/typeslots.inchttps://github.com/python/cpython/pull/21931/files#diff-8cd667265e8ad05f07f4eec481aef7f33f076636db1c9d1784657f969dd5a152
View file https://github.com/shihai1991/cpython/blob/fc2c06b08cbf7f8011db9779a8836adf7c6ddaf7/Objects/typeslots.inc
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/21931/files
Please reload this pagehttps://github.com/python/cpython/pull/21931/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.