[Python-checkins] Doc: add the missing ".tp_flags" in type definition (GH-12902)
Inada Naoki
webhook-mailer at python.org
Mon Apr 22 07:08:29 EDT 2019
https://github.com/python/cpython/commit/662ebd2ab2047aeae9689ad254b39915c38069fd
commit: 662ebd2ab2047aeae9689ad254b39915c38069fd
branch: master
author: Wu Wei <weiwu at cacheme.net>
committer: Inada Naoki <songofacandy at gmail.com>
date: 2019-04-22T20:08:20+09:00
summary:
Doc: add the missing ".tp_flags" in type definition (GH-12902)
files:
M Doc/extending/newtypes_tutorial.rst
diff --git a/Doc/extending/newtypes_tutorial.rst b/Doc/extending/newtypes_tutorial.rst
index bb8a40d0fb06..b4bf9b9e6f75 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,
};
More information about the Python-checkins
mailing list