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

Jeremy Hylton jeremy@zope.com
Sat, 2 Mar 2002 01:54:30 -0500


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

Modified Files:
      Tag: Zope-3x-branch
	SetTemplate.c 
Log Message:
Add tp_traverse and tp_clear slots for Sets.


=== Zope3/lib/python/Persistence/BTrees/SetTemplate.c 1.1.2.6 => 1.1.2.7 ===
     0,					/* tp_setattro */
     0,					/* tp_as_buffer */
-/* XXX need to define traverse and clear functions */
     Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC |
 	    Py_TPFLAGS_BASETYPE, 	/* tp_flags */
     0,					/* tp_doc */
-    0,	/* tp_traverse */
-    0,		/* tp_clear */
+    (traverseproc)bucket_traverse,	/* tp_traverse */
+    (inquiry)bucket_clear,		/* tp_clear */
     0,					/* tp_richcompare */
     offsetof(Bucket, po_weaklist),	/* tp_weaklistoffset */
     0,					/* tp_iter */