Supposed to call type->tp_alloc(type) instead of PyObject_New Adding Py_TPFLAGS_BASETYPE and checking it
Attach a file by drag & drop or click to upload