[Zodb-checkins] CVS: ZODB3 - typeobject.patch:1.1.2.1 README.txt:1.6.2.1

Jeremy Hylton jeremy@zope.com
Tue, 17 Sep 2002 12:04:12 -0400


Update of /cvs-repository/ZODB3
In directory cvs.zope.org:/tmp/cvs-serv17568

Modified Files:
      Tag: ZODB3-3_1-branch
	README.txt 
Added Files:
      Tag: ZODB3-3_1-branch
	typeobject.patch 
Log Message:
Add note about Python 2.2.1 bug and include patch.





=== Added File ZODB3/typeobject.patch ===
===================================================================
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;


=== ZODB3/README.txt 1.6 => 1.6.2.1 ===
--- ZODB3/README.txt:1.6	Wed Sep 11 19:13:18 2002
+++ ZODB3/README.txt	Tue Sep 17 12:04:12 2002
@@ -49,6 +49,9 @@
 use at least Berkeley 4.0.14 and PyBSDDB 3.4.0.  See the
 `bsddb3Storage/README` file for details.
 
+There is a bug in Python 2.2.1 that causes crashes on some platforms.
+If you are using Python 2.2.1, you should recompile Python with the patch in
+`typeobject.patch` applied.
 
 Installation
 ------------