Generator inside a class prevent __del__ ??
Andrew Bennetts
andrew-pythonlist at puzzling.org
Wed Apr 21 18:57:33 EDT 2004
On Wed, Apr 21, 2004 at 02:53:33PM +0200, Emmanuel wrote:
>
> Trouble is, I _would_ like not to care about the lifetime of the object, and I
> don't know where it will be destroyed.
Then don't use __del__. Python can and will automatically collect cycles
when the objects *don't* define __del__ methods.
Out of curiousity, why are you defining __del__ anyway?
-Andrew.
More information about the Python-list
mailing list