__init__ explanation please

Fredrik Lundh fredrik at pythonware.com
Sun Jan 13 07:31:05 EST 2008


Jeroen Ruigrok van der Werven wrote:

> I personally tend to see __init__ or __new__ as equivalent to what other
> languages call a constructor.
> 
> (And I am sure some people might disagree with that. ;))

given that they do different things, I'm not sure it's that helpful to 
describe them *both* as constructors.

</F>




More information about the Python-list mailing list