Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b1558a0

Browse files
author
Stefan Krah
authored
bpo-31443: Update included code. (#3697)
1 parent ca72589 commit b1558a0

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

Doc/includes/noddy.c

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,23 @@ static PyTypeObject noddy_NoddyType = {
2727
0, /* tp_as_buffer */
2828
Py_TPFLAGS_DEFAULT, /* tp_flags */
2929
"Noddy objects", /* tp_doc */
30+
0, /* tp_traverse */
31+
0, /* tp_clear */
32+
0, /* tp_richcompare */
33+
0, /* tp_weaklistoffset */
34+
0, /* tp_iter */
35+
0, /* tp_iternext */
36+
0, /* tp_methods */
37+
0, /* tp_members */
38+
0, /* tp_getset */
39+
0, /* tp_base */
40+
0, /* tp_dict */
41+
0, /* tp_descr_get */
42+
0, /* tp_descr_set */
43+
0, /* tp_dictoffset */
44+
0, /* tp_init */
45+
0, /* tp_alloc */
46+
PyType_GenericNew, /* tp_new */
3047
};
3148

3249
static PyModuleDef noddymodule = {
@@ -42,7 +59,6 @@ PyInit_noddy(void)
4259
{
4360
PyObject* m;
4461

45-
noddy_NoddyType.tp_new = PyType_GenericNew;
4662
if (PyType_Ready(&noddy_NoddyType) < 0)
4763
return NULL;
4864

0 commit comments

Comments
 (0)