[Patches] GC infrastructure patch 1 (tp_recurse, tp_clear)

M.-A. Lemburg mal@lemburg.com
Wed, 21 Jun 2000 23:26:19 +0200


Neil Schemenauer wrote:
> 
> On Wed, Jun 21, 2000 at 01:26:21PM -0400, Jeremy Hylton wrote:
> > How about zero for failure?  The the recurse function returns one
> > unless the visit function returns zero.
> 
> Zero for success is more flexible but perhaps more confusing.  I
> don't care either way (or even if you change everything to void).
> The GC doesn't need it.  :)

It's common usage in CPython to return non-zero values to
point to error conditions and a zero return to mean "ok".

Why invent some new semantics here ?

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/