On 04/05/2007 20.35, Adam Olsen wrote: > Any attempt that keeps the entire contents of __dict__ alive is > doomed. It's likely to contain a cycle back to the original object, > and avoiding that is the whole point of jumping through these hoops.
Uh? If __dict__ contains a cycle back to the original object, then the object is part of a cycle already, with or without getting an additional reference to the __dict__ within the finalization callback. And if there's no cycle, you're not creating one by just referencing __dict__. -- Giovanni Bajo _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
