[Patches] RE: Trashcan at its best

Mark Hammond mhammond@skippinet.com.au
Sun, 23 Apr 2000 12:34:59 +1000


> This is a patch for a very much improved
> version of trashcan - secure destruction of
> deeply nested objects.

Cool.

> The delayed objects are instead chained together
> via their ob_type field. The type is encoded via
> ob_refcnt. When it comes to the destruction of the
> chain of waiting objects, the topmost object is popped
> off the chain and revived with type and refcount 1,
> then it gets a normal Py_DECREF.

Eeek!!!

Erm - Im glad Im not the one having the final say on this :-) =20

FYI - I did _not_ review the patch, but did apply it.  It appears to =
leave my machine running fine, including the deeply recursive code that =
blew this up in the first place...  Should this status change, I'll let =
you know ;-)

Mark.