Index: typeobject.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v retrieving revision 2.126.4.4 diff -u -r2.126.4.4 typeobject.c --- typeobject.c 17 Mar 2002 18:57:07 -0000 2.126.4.4 +++ typeobject.c 1 Apr 2002 13:29:09 -0000 @@ -170,7 +170,10 @@ (kwds == NULL || (PyDict_Check(kwds) && PyDict_Size(kwds) == 0))) return obj; - type = obj->ob_type; + /* If the type of object returned is not what is expected, + assume that it is fully initialized. */ + if(type != obj->ob_type) + return obj; if (type->tp_init != NULL && type->tp_init(obj, args, kwds) < 0) { Py_DECREF(obj);