what *is* a class?

Uwe Mayer merkosh at hadiko.de
Sun Jun 16 19:52:52 EDT 2002


hi

i've got an object 'Group'. i instanciate it by calling, f.e.
g = Group()

what actually does Group() return and is there any way to get hold of 
that again?
i want to write a method which returns the instance, so that f.e. the 
following is possible:

g = Group()
g2 = g.foobar()
g2 is g

so that g2 is identical to g.
any idea?

thanks in advance
Uwe



More information about the Python-list mailing list