destructor not called

Marcin201 marcin201 at gmail.com
Mon Sep 29 18:06:11 CEST 2008


> Others have already replied to your main question; in short you
> shouldn't rely on __del__ being called. Regardless, is there a (good)
> reason for having an instance reference to the method ? Without
> further information, that seems like a code smell.

I have dictionary of fxns to do import/export based on the type of
request from user so I can call self.Import['html'] or
self.Import['text'].

Thanks for everyones help.

Marcin



More information about the Python-list mailing list