]> granicus.if.org Git - python/commitdiff
Doc: add the missing ".tp_flags" in type definition (GH-12902)
authorWu Wei <weiwu@cacheme.net>
Mon, 22 Apr 2019 11:08:20 +0000 (19:08 +0800)
committerInada Naoki <songofacandy@gmail.com>
Mon, 22 Apr 2019 11:08:20 +0000 (20:08 +0900)
Doc/extending/newtypes_tutorial.rst

index bb8a40d0fb06f50ff6b52fa3dcb54fb86ac9d784..b4bf9b9e6f75f826bcc3de48406c3f4d52885002 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,
    };