[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Objects classobject.c,2.86,2.87 dictobject.c,2.52,2.53 funcobject.c,2.20,2.21 listobject.c,2.73,2.74 tupleobject.c,2.36,2.37

Neil Schemenauer nascheme@enme.ucalgary.ca
Fri, 23 Jun 2000 11:12:51 -0600


On Fri, Jun 23, 2000 at 07:18:13AM -0700, Jeremy Hylton wrote:
> Round 1 of Neil Schemenauer's GC patches:

Yay.  :)

> + class_traverse(PyClassObject *o, visitproc visit, void *arg)
> + {
...
> + 	return 0;
> + }

> + instance_traverse(PyInstanceObject *o, visitproc visit, void *arg)
> + {
...
> + 	return 1;
> + }

Oops.  I think "return 0" is the proper thing to do.  There are a
few other functions that return 1 as well.

  Neil