summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2023-06-12 15:45:49 (GMT)
committerGitHub <noreply@github.com>2023-06-12 15:45:49 (GMT)
commit2b90796be6959d5ef46b38c434a514fce25be971 (patch)
tree6b4f0c83e850c385c50b9ba79cd4522ac76a5350 /Doc/c-api
parent58f0bda34126ed790000451874b96140737f40ed (diff)
downloadcpython-2b90796be6959d5ef46b38c434a514fce25be971.zip
cpython-2b90796be6959d5ef46b38c434a514fce25be971.tar.gz
cpython-2b90796be6959d5ef46b38c434a514fce25be971.tar.bz2
gh-103968: PyType_FromMetaclass: Allow metaclasses with tp_new=NULL (GH-105386)
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/type.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst
index bf261b9..c99c7ef 100644
--- a/Doc/c-api/type.rst
+++ b/Doc/c-api/type.rst
@@ -258,7 +258,7 @@ The following functions and structs are used to create
(or *Py_tp_base[s]* slots if *bases* is ``NULL``, see below).
Metaclasses that override :c:member:`~PyTypeObject.tp_new` are not
- supported.
+ supported, except if ``tp_new`` is ``NULL``.
(For backwards compatibility, other ``PyType_From*`` functions allow
such metaclasses. They ignore ``tp_new``, which may result in incomplete
initialization. This is deprecated and in Python 3.14+ such metaclasses will