Recursive method

Ralph Gauges ralph.gauges at eml.villa-bosch.de
Wed Jul 14 11:29:52 EDT 1999


> 
> probably because there is no instance when the
> class definition is executed...
> 
> ("class" is a *statement*, not a declaration, and
> is executed when the script is run.  see:
> http://www.python.org/doc/current/ref/class.html
> for details.  "def" is also a statement, btw...)
> 
> </F>

This sounds right, but when I have a class that pops up a
gui on my screen, as I do now, it doesn't seem to make much
difference, wether I build the gui right in the class
definition or in the __init__ method. Both is executed when
I make an Instance, the only difference I could see is that
one time I had a self and the other time I didn't.
Maybe I am missing the point here, but I still don't get it
completely.

Ralph




More information about the Python-list mailing list