Title: Add `PyType_GetBaseByToken` function with `Py_tp_token` slot · Issue #124153 · python/cpython · GitHub
Open Graph Title: Add `PyType_GetBaseByToken` function with `Py_tp_token` slot · Issue #124153 · python/cpython
X Title: Add `PyType_GetBaseByToken` function with `Py_tp_token` slot · Issue #124153 · python/cpython
Description: This issue implements a proposal related to PEP-489 and PEP-630. Decision: capi-workgroup/decisions#34 TODO: Implement the feature Use it in _PyStgInfo_FromType_NoState() in _ctypes.c Ensure no performance regression in PyType_GetModuleB...
Open Graph Description: This issue implements a proposal related to PEP-489 and PEP-630. Decision: capi-workgroup/decisions#34 TODO: Implement the feature Use it in _PyStgInfo_FromType_NoState() in _ctypes.c Ensure no per...
X Description: This issue implements a proposal related to PEP-489 and PEP-630. Decision: capi-workgroup/decisions#34 TODO: Implement the feature Use it in _PyStgInfo_FromType_NoState() in _ctypes.c Ensure no per...
Opengraph URL: https://github.com/python/cpython/issues/124153
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add `PyType_GetBaseByToken` function with `Py_tp_token` slot","articleBody":"This issue implements a proposal related to PEP-489 and PEP-630.\r\n\r\n**Decision:**\r\n\r\n* https://github.com/capi-workgroup/decisions/issues/34\r\n\r\n**TODO:**\r\n\r\n- [x] Implement the feature\r\n- [x] Use it in `_PyStgInfo_FromType_NoState()` in `_ctypes.c`\r\n- [x] Ensure no performance regression in `PyType_GetModuleByDef()` and other functions affected by this feature on Windows PGO builds\r\n\r\n\r\n**TODO (optional):**\r\n\r\n- [x] Replace `PyType_GetModuleByDef()` in `defdict_or()` (`_collectionsmodule.c`)\r\n- [x] Replace `_PyType_GetModuleByDef2()` in `_decimal.c`\r\n- [x] Remove `_PyType_GetModuleByDef2()`\r\n\r\n\r\n### Has this already been discussed elsewhere?\r\n\r\nI have already discussed this feature proposal on Discourse\r\n\r\n### Links to previous discussion of this feature:\r\n\r\n* https://github.com/encukou/abi3/issues/19\r\n* https://discuss.python.org/t/55598\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-121079\r\n* gh-124163\r\n* gh-124261\r\n* gh-124323\r\n* gh-124488\r\n* gh-141644\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/neonene","@type":"Person","name":"neonene"},"datePublished":"2024-09-17T03:18:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/124153/cpython/issues/124153"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8a4eeaa8-50eb-5678-610d-3f56524fce37 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC18:D9031:1697BE6:1D8D381:696B8435 |
| html-safe-nonce | 9f5a4a6ab07056a7fbc86918fe8f02302ec76c4d9c17b72de8ddcf2cd599ca3a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzE4OkQ5MDMxOjE2OTdCRTY6MUQ4RDM4MTo2OTZCODQzNSIsInZpc2l0b3JfaWQiOiI2NzIwMTIxMzM3MzY5Mjk3OTczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | adcb1c6c0bffe61b303b506d10943d5e3e6b02a8893fb57c582c6fb4114901cd |
| hovercard-subject-tag | issue:2529892601 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/124153/issue_layout |
| twitter:image | https://opengraph.githubassets.com/868f0f66ba1789982e3ef276d4a5357443c1927138da46ed1e42e64cf791a493/python/cpython/issues/124153 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/868f0f66ba1789982e3ef276d4a5357443c1927138da46ed1e42e64cf791a493/python/cpython/issues/124153 |
| og:image:alt | This issue implements a proposal related to PEP-489 and PEP-630. Decision: capi-workgroup/decisions#34 TODO: Implement the feature Use it in _PyStgInfo_FromType_NoState() in _ctypes.c Ensure no per... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | neonene |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width