Index: Include/object.h =================================================================== --- Include/object.h (Revision 88358) +++ Include/object.h (Arbeitskopie) @@ -396,7 +396,6 @@ typedef struct{ const char* name; - const char* doc; int basicsize; int itemsize; int flags; Index: Tools/scripts/abitype.py =================================================================== --- Tools/scripts/abitype.py (Revision 88358) +++ Tools/scripts/abitype.py (Arbeitskopie) @@ -162,7 +162,7 @@ res = [] res.append('static PyType_Slot %s_slots[] = {' % name) # defaults for spec - spec = { 'tp_doc':'NULL', 'tp_itemsize':'0' } + spec = { 'tp_itemsize':'0' } for i, val in enumerate(fields): if val.endswith('0'): continue @@ -174,7 +174,6 @@ res.append('};') res.append('static PyType_Spec %s_spec = {' % name) res.append(' %s,' % spec['tp_name']) - res.append(' %s,' % spec['tp_doc']) res.append(' %s,' % spec['tp_basicsize']) res.append(' %s,' % spec['tp_itemsize']) res.append(' %s,' % spec['tp_flags']) Index: Modules/xxlimited.c =================================================================== --- Modules/xxlimited.c (Revision 88358) +++ Modules/xxlimited.c (Arbeitskopie) @@ -101,6 +101,7 @@ } static PyType_Slot Xxo_Type_slots[] = { + {Py_tp_doc, "The Xxo type"}, {Py_tp_dealloc, Xxo_dealloc}, {Py_tp_getattro, Xxo_getattro}, {Py_tp_setattr, Xxo_setattr}, @@ -109,8 +110,7 @@ }; static PyType_Spec Xxo_Type_spec = { - "xxmodule.Xxo", - NULL, + "xxlimited.Xxo", sizeof(XxoObject), 0, Py_TPFLAGS_DEFAULT, @@ -178,7 +178,6 @@ "xxlimited.Str", 0, 0, - 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, Str_Type_slots }; @@ -201,7 +200,6 @@ static PyType_Spec Null_Type_spec = { "xxlimited.Null", - NULL, /* doc */ 0, /* basicsize */ 0, /* itemsize */ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, @@ -230,7 +228,7 @@ static struct PyModuleDef xxmodule = { PyModuleDef_HEAD_INIT, - "xx", + "xxlimited", module_doc, -1, xx_methods, @@ -264,7 +262,7 @@ /* Add some symbolic constants to the module */ if (ErrorObject == NULL) { - ErrorObject = PyErr_NewException("xx.error", NULL, NULL); + ErrorObject = PyErr_NewException("xxlimited.error", NULL, NULL); if (ErrorObject == NULL) goto fail; }