Title: PyModule_FromSlotsAndSpec and PyModule_GetToken exposed without named parameters · Issue #143883 · python/cpython · GitHub
Open Graph Title: PyModule_FromSlotsAndSpec and PyModule_GetToken exposed without named parameters · Issue #143883 · python/cpython
X Title: PyModule_FromSlotsAndSpec and PyModule_GetToken exposed without named parameters · Issue #143883 · python/cpython
Description: Most of the public functions in the C API have named parameters and both of these functions are documented with named parameters: https://docs.python.org/3.15/c-api/module.html#c.PyModule_FromSlotsAndSpec https://docs.python.org/3.15/c-a...
Open Graph Description: Most of the public functions in the C API have named parameters and both of these functions are documented with named parameters: https://docs.python.org/3.15/c-api/module.html#c.PyModule_FromSlots...
X Description: Most of the public functions in the C API have named parameters and both of these functions are documented with named parameters: https://docs.python.org/3.15/c-api/module.html#c.PyModule_FromSlots...
Opengraph URL: https://github.com/python/cpython/issues/143883
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PyModule_FromSlotsAndSpec and PyModule_GetToken exposed without named parameters","articleBody":"Most of the public functions in the C API have named parameters and both of these functions are documented with named parameters:\n\nhttps://docs.python.org/3.15/c-api/module.html#c.PyModule_FromSlotsAndSpec\nhttps://docs.python.org/3.15/c-api/module.html#c.PyModule_GetToken\n\nWhile wrapping these APIs for PyO3, I noticed that the public definitions just have types for the first parameter without an explicit name:\n\nhttps://github.com/python/cpython/blob/c461aa99e2fabbaf5859c0a8a93e08306ee8115d/Include/moduleobject.h#L120-L126\n\nIt'd be nice for those interfaces to match the names in the docs.\n\nThis code was added in https://github.com/python/cpython/pull/140556. I don't see any discussion about this, I think it was just missed.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-143884\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/ngoldbaum","@type":"Person","name":"ngoldbaum"},"datePublished":"2026-01-15T18:28:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/143883/cpython/issues/143883"}
| 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:af012640-397d-7ffd-edc2-33d08272c3bf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8624:367397:F6E82:15DCDA:696A030C |
| html-safe-nonce | 9f1ef77b7a75687bab85d0415f92ef80697c45f48447b0bae1adbf9f9a277e96 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjI0OjM2NzM5NzpGNkU4MjoxNURDREE6Njk2QTAzMEMiLCJ2aXNpdG9yX2lkIjoiNTc0NzU1MzY3NDI1NDIyMjA5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 31fc14db0295b29a62ec625f1c552270bcff0efa4de2a6fdec501bef47386638 |
| hovercard-subject-tag | issue:3818668323 |
| 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/143883/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5f3a67ab3dd4e7f528b762f5a881c8c6701ac106f0dc9114ec77401e57e369d0/python/cpython/issues/143883 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5f3a67ab3dd4e7f528b762f5a881c8c6701ac106f0dc9114ec77401e57e369d0/python/cpython/issues/143883 |
| og:image:alt | Most of the public functions in the C API have named parameters and both of these functions are documented with named parameters: https://docs.python.org/3.15/c-api/module.html#c.PyModule_FromSlots... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ngoldbaum |
| hostname | github.com |
| expected-hostname | github.com |
| None | 578c119ff0247c8b2f2491fbf4fc0395cdf909d4df66598cebdc96ddfc4418dc |
| 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 | 671c2f67171dbced24284331f3133a613d08c366 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width