]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] gh-96746: Docs: Clear up Py_TPFLAGS_DISALLOW_INSTANTIATION inheritance (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 7 Nov 2022 18:56:21 +0000 (10:56 -0800)
committerGitHub <noreply@github.com>
Mon, 7 Nov 2022 18:56:21 +0000 (19:56 +0100)
commitd2cb0f91178ed97e3a7509f7d5fca50a39880c3d
treee039dffa24327b0cc6bffeaf61fd7efc25604416
parent6b46cb4d3380282476a2233b17b2164a75396846
[3.10] gh-96746: Docs: Clear up Py_TPFLAGS_DISALLOW_INSTANTIATION inheritance (GH-99002) (GH-99213)

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”.
(cherry picked from commit 1438b779971605e516bd0a4051a704d6ffbbd58d)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Doc/c-api/typeobj.rst