diff options
author | Wenzel Jakob <wenzel.jakob@epfl.ch> | 2022-05-27 08:27:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-27 08:27:39 (GMT) |
commit | 5e34b494a08015e9b5a3deade23943bdba284a93 (patch) | |
tree | 829c824df2d307b14d0cf9efc51e2bbfcca92589 /PC | |
parent | 20d30ba2ccf9182e4f08db112f428c909148a40b (diff) | |
download | cpython-5e34b494a08015e9b5a3deade23943bdba284a93.zip cpython-5e34b494a08015e9b5a3deade23943bdba284a93.tar.gz cpython-5e34b494a08015e9b5a3deade23943bdba284a93.tar.bz2 |
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.
Diffstat (limited to 'PC')
-rwxr-xr-x | PC/python3dll.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/PC/python3dll.c b/PC/python3dll.c index 50e7a96..024ec49 100755 --- a/PC/python3dll.c +++ b/PC/python3dll.c @@ -599,6 +599,7 @@ EXPORT_FUNC(PyTuple_Pack) EXPORT_FUNC(PyTuple_SetItem) EXPORT_FUNC(PyTuple_Size) EXPORT_FUNC(PyType_ClearCache) +EXPORT_FUNC(PyType_FromMetaclass) EXPORT_FUNC(PyType_FromModuleAndSpec) EXPORT_FUNC(PyType_FromSpec) EXPORT_FUNC(PyType_FromSpecWithBases) |