destructor not called

Michel Leunen michel at nospam.please
Sun Sep 28 13:04:04 EDT 2008


Marcin201 a écrit :

> class Foo:
>     def __init__(self):
>         print "Hello"
>         self.f = self.fxn

Maybe self.f = self.fxn() is what you want. Note the '()'.

-- 
Michel Leunen
http://linux.leunen.com



More information about the Python-list mailing list