Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 509 Bytes

2022-05-20-13-32-24.gh-issue-93012.e9B-pv.rst

File metadata and controls

8 lines (7 loc) · 509 Bytes

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.