]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: add the missing ".tp_flags" in type definition (GH-12902)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 22 Apr 2019 11:14:25 +0000 (04:14 -0700)
committerGitHub <noreply@github.com>
Mon, 22 Apr 2019 11:14:25 +0000 (04:14 -0700)
(cherry picked from commit 662ebd2ab2047aeae9689ad254b39915c38069fd)

Co-authored-by: Wu Wei <weiwu@cacheme.net>
Doc/extending/newtypes_tutorial.rst

index ac48637bbee9beae47085bdc6e9fc92f6cd09bd7..07c2ef718aedf6b424bb2bba11355e3513581100 100644 (file)
@@ -92,6 +92,7 @@ The second bit is the definition of the type object. ::
        .tp_doc = "Custom objects",
        .tp_basicsize = sizeof(CustomObject),
        .tp_itemsize = 0,
+       .tp_flags = Py_TPFLAGS_DEFAULT,
        .tp_new = PyType_GenericNew,
    };