__init__ not a "constructor" ?

Evan Jones EvanJ at eyron.com
Tue Aug 14 05:20:50 EDT 2001


Come to think of it the __init__ method is more of a constructor than a Java
constructor because __init__ is typically responsible for adding 'instance'
members to the object, where as, by the time Java constructor code is called
all the memory and naming for instance variables has been done.

Uru
Evan





More information about the Python-list mailing list