File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
3249static 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
You can’t perform that action at this time.
0 commit comments