FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Doc: add the missing ".tp_flags" in type definition (GH-12902) · python-emscripten/cpython@662ebd2 · GitHub

Repository navigation

Commit 662ebd2

Browse files
authored andcommitted
Doc: add the missing ".tp_flags" in type definition (pythonGH-12902)
1 parent 9b21856 commit 662ebd2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Doc/extending/newtypes_tutorial.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ The second bit is the definition of the type object. ::
9292
.tp_doc = "Custom objects",
9393
.tp_basicsize = sizeof(CustomObject),
9494
.tp_itemsize = 0,
95+
.tp_flags = Py_TPFLAGS_DEFAULT,
9596
.tp_new = PyType_GenericNew,
9697
};
9798

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL