]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-60074: add new stable API function PyType_FromMetaclass (GH-93012)
authorWenzel Jakob <wenzel.jakob@epfl.ch>
Fri, 27 May 2022 08:27:39 +0000 (10:27 +0200)
committerGitHub <noreply@github.com>
Fri, 27 May 2022 08:27:39 +0000 (10:27 +0200)
commit5e34b494a08015e9b5a3deade23943bdba284a93
tree829c824df2d307b14d0cf9efc51e2bbfcca92589
parent20d30ba2ccf9182e4f08db112f428c909148a40b
gh-60074: add new stable API function PyType_FromMetaclass (GH-93012)

Added a new stable API function ``PyType_FromMetaclass``, which mirrors
the behavior of ``PyType_FromModuleAndSpec`` except that it takes an
additional metaclass argument. This is, e.g., useful for language
binding tools that need to store additional information in the type
object.
12 files changed:
Doc/c-api/type.rst
Doc/c-api/typeobj.rst
Doc/data/stable_abi.dat
Doc/whatsnew/3.12.rst
Include/object.h
Lib/test/test_capi.py
Lib/test/test_stable_abi_ctypes.py
Misc/NEWS.d/next/Core and Builtins/2022-05-20-13-32-24.gh-issue-93012.e9B-pv.rst [new file with mode: 0644]
Misc/stable_abi.toml
Modules/_testcapimodule.c
Objects/typeobject.c
PC/python3dll.c