Use __del__ methods to improve gc?

Neil Schemenauer nas-usenet at arctrix.com
Thu Jun 12 21:23:27 CEST 2003


Edward K. Ream <edreamleo at charter.net> wrote:
> My app has unlimited undo.  As a result, most "user" data never truly gets
> deleted: the undo stack keeps references to all such data alive "forever".
> 
> I am wondering whether it would be a good idea to put dummy __del__ methods
> in the user data classes.  Would this help the gc by telling the gc what not
> to look at?

No.  The GC will still traverse those objects when doing a full
collection.

  Neil




More information about the Python-list mailing list