problems with class initiation

Iñigo Serna inigoserna at terra.es
Tue Jul 3 19:20:44 EDT 2001


Thanks to Nick, Magnus, Steve and Ducan for answering.

Finally, the best solution was the obvious, so I pass Main's self
reference to the constructor of Second class. I didn't like this way, it
seemed a bit ugly (perhaps because I don't know much OO... well, in fact
I didn't like OO at all until I found python ;-)

Ah, and the return value of the __init__ constructor was just because I
needed to write a rapid example...

Thanks again,

Iñigo Serna






More information about the Python-list mailing list