Defining classes
Gabriel Genellina
gagsl-py at yahoo.com.ar
Wed Dec 13 16:52:32 EST 2006
At Wednesday 13/12/2006 18:04, Nick Maclaren wrote:
>I am defining a class, and I need to refer to that class when
>setting up its static data - don't ask - like this:
>
>Class weeble :
> wumpus = brinjal(weeble)
Move it below the class:
class weeble:
........
weeble.wumpus = brinjal(weeble)
Not perfect but manageable I think...
--
Gabriel Genellina
Softlab SRL
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
More information about the Python-list
mailing list