]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-96746: Docs: Clear up Py_TPFLAGS_DISALLOW_INSTANTIATION inheritance (GH-99002)
authorPetr Viktorin <encukou@gmail.com>
Mon, 7 Nov 2022 18:45:50 +0000 (19:45 +0100)
committerGitHub <noreply@github.com>
Mon, 7 Nov 2022 18:45:50 +0000 (19:45 +0100)
commit1438b779971605e516bd0a4051a704d6ffbbd58d
tree578698b69d07e4f6877af41a9557f9c0cc12251b
parent4a1c58d504a49eeb9be7beef3ca861a9d6b28ede
gh-96746: Docs: Clear up Py_TPFLAGS_DISALLOW_INSTANTIATION inheritance (GH-99002)

The flag is not inherited, but its effect -- a NULL tp_new -- is.

Drop hints for people who come here wanting to “disallow instantiation”.
Doc/c-api/typeobj.rst