Is this a bug with __del__()

Costas Menico costas at meezon.com
Thu May 24 15:02:58 EDT 2001


Alex <new_name at mit.edu> wrote:

>
>> Why does the __del__ get called for a class when all I am doing is
>> creating an object? It seems to be a problem..
>
>Probably because the object you've created gets destroyed when python
>cleans up prior to exiting.
>

Have you tired running it? Why does the "Delete called" show up before
the "program end"?

costas



More information about the Python-list mailing list