From: Wu Wei Date: Mon, 22 Apr 2019 11:08:20 +0000 (+0800) Subject: Doc: add the missing ".tp_flags" in type definition (GH-12902) X-Git-Tag: v3.8.0a4~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=662ebd2ab2047aeae9689ad254b39915c38069fd;p=python Doc: add the missing ".tp_flags" in type definition (GH-12902) --- diff --git a/Doc/extending/newtypes_tutorial.rst b/Doc/extending/newtypes_tutorial.rst index bb8a40d0fb..b4bf9b9e6f 100644 --- a/Doc/extending/newtypes_tutorial.rst +++ b/Doc/extending/newtypes_tutorial.rst @@ -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, };