Basic python OOPs question

Diego Dainese ddainese05x at x25dsi.unive.it
Tue Jun 15 13:33:18 EDT 1999


On Thu, 10 Jun 1999 17:45:35 GMT, Daniel wrote:
> Do I understand correctly that objects are removed
> from the name space when they go out of scope?
> And that they go out of scope based on indentation?
> 

Yes.

> If so is there a default function called on 
> objects that go out of scope?  The __init__
> function is called when an object is created.
> Is there a function that is called when the
> object is destroyed?
> 

The __del__ function.

In the Chapter 3 of the Language Reference there is the whole list of
these `special' methods.

Bye,

-- 
d i e g o
--
To reply remove the numbers and the `x' from my address
--
Sorry for my bad English!




More information about the Python-list mailing list