-
-
Couldn't load subscription status.
- Fork 33.3k
gh-60074: add new stable API function PyType_FromMetaclass #93012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
05940a8
30e4e1b
0525d78
db62080
b4a478c
872249e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| Added the new function :c:func:`PyType_FromMetaclass`, which generalizes the | ||
| existing :c:func:`PyType_FromModuleAndSpec` using an additional metaclass | ||
| argument. This is useful for language binding tools, where it can be used to | ||
| intercept type-related operations like subclassing or static attribute access | ||
| by specifying a metaclass with custom slots. | ||
|
|
||
| Importantly, :c:func:`PyType_FromMetaclass` is available in the Limited API, | ||
| which provides a path towards migrating more binding tools onto the Stable ABI. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.