class destructor

Oleg Broytmann phd at phd.russ.ru
Mon Jan 10 10:00:30 EST 2000


On Mon, 10 Jan 2000, [iso-8859-2] PrzemysЁaw G. [iso-8859-2] GawroЯski wrote:
> Is there 'automatic' destructor in python, like AClass::~AClass() in C++
> ?

   Method __del__(self) will be called when python is about to destroy the
object (ie, reference count dropped to zero).

Oleg.
---- 
    Oleg Broytmann      Foundation for Effective Policies      phd at phd.russ.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list