[Zodb-checkins] CVS: Zope3/lib/python/Persistence/BTrees - SetTemplate.c:1.1.2.3

Jeremy Hylton jeremy@zope.com
Wed, 27 Feb 2002 00:47:49 -0500


Update of /cvs-repository/Zope3/lib/python/Persistence/BTrees
In directory cvs.zope.org:/tmp/cvs-serv11894

Modified Files:
      Tag: Zope-3x-branch
	SetTemplate.c 
Log Message:
Change Set_update() from METH_VARARGS to METH_O.

Fix apparently incorrect cast in previous checked in version.


=== Zope3/lib/python/Persistence/BTrees/SetTemplate.c 1.1.2.2 => 1.1.2.3 ===
 
 static PyObject *
-Set_update(BTree *self, PyObject *args)
+Set_update(Bucket *self, PyObject *args)
 {
     PyObject *seq = NULL;
     int n = 0;
@@ -165,7 +165,7 @@
    "__setstate__() -- Set the state of the object"},
   {"keys",	(PyCFunction) bucket_keys,	METH_VARARGS,
      "keys() -- Return the keys"},
-  {"has_key",	(PyCFunction) bucket_has_key,	METH_VARARGS,
+  {"has_key",	(PyCFunction) bucket_has_key,	METH_O,
      "has_key(key) -- Test whether the bucket contains the given key"},
   {"clear",	(PyCFunction) bucket_clear,	METH_VARARGS,
    "clear() -- Remove all of the items from the bucket"},
@@ -202,7 +202,7 @@
 	return -1;
 
     if (v)
-	return _Set_update((BTree *)self, v);
+	return _Set_update((Bucket *)self, v);
     else
 	return 0;
 }