diff options
author | Wu Wei <weiwu@cacheme.net> | 2019-04-22 19:08:20 +0800 |
---|---|---|
committer | Inada Naoki <songofacandy@gmail.com> | 2019-04-22 20:08:20 +0900 |
commit | 662ebd2ab2047aeae9689ad254b39915c38069fd (patch) | |
tree | 4a0caa4811cf0d172f2b33de95ea4f4b02b746ec /Doc/extending | |
parent | 9b21856b0fcda949de239edc7aa6cf3f2f4f77a3 (diff) | |
download | cpython-git-662ebd2ab2047aeae9689ad254b39915c38069fd.tar.gz |
Doc: add the missing ".tp_flags" in type definition (GH-12902)
Diffstat (limited to 'Doc/extending')
-rw-r--r-- | Doc/extending/newtypes_tutorial.rst | 1 |
1 files changed, 1 insertions, 0 deletions
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, }; |