Defining classes

Nick Maclaren nmm1 at cus.cam.ac.uk
Wed Dec 13 16:04:56 EST 2006


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)

Does anyone know how I can achieve this?  Naturally, I don't need
anything more than the address of the class in brinjal, as it won't
be used until after the class has been created properly.  Actually,
it won't be used except to test for class equivalence, but I may
want to extend later.


Regards,
Nick Maclaren.



More information about the Python-list mailing list