[ZODB-Dev] Error running test.py in zodb3.1b

Jeremy Hylton jeremy@zope.com
Wed, 25 Sep 2002 16:48:46 -0400


Before you collect the stack trace, you probably need to rebuild
Python with the patch below applied.  I need to update the web site to
mention that Python 2.2.1 has a bug that causes ZODB to crash.

Jeremy

===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.126.4.19
retrieving revision 2.126.4.20
diff -c -r2.126.4.19 -r2.126.4.20
*** Objects/typeobject.c	2002/07/11 07:06:44	2.126.4.19
--- Objects/typeobject.c	2002/07/16 19:42:21	2.126.4.20
***************
*** 190,196 ****
  		     (PyDict_Check(kwds) && PyDict_Size(kwds) == 0)))
  			return obj;
  		type = obj->ob_type;
! 		if (type->tp_init != NULL &&
  		    type->tp_init(obj, args, kwds) < 0) {
  			Py_DECREF(obj);
  			obj = NULL;
--- 190,197 ----
  		     (PyDict_Check(kwds) && PyDict_Size(kwds) == 0)))
  			return obj;
  		type = obj->ob_type;
! 		if (PyType_HasFeature(type, Py_TPFLAGS_HAVE_CLASS) &&
! 		    type->tp_init != NULL &&
  		    type->tp_init(obj, args, kwds) < 0) {
  			Py_DECREF(obj);
  			obj = NULL;