George Sakkis wrote: <snip> > Make printclass a class method: > > class A(object): > def __init__(self): > print "I'm A" > > # for python 2.4 > @classmethod > def printclass(cls): > print "Module", cls.__module__ > print "Class", cls.__name__ > # for 2.3 or older > printclass = classmethod(printclass) > > > Regards, > George
George, it works like a charm. Thanks! Benedict -- http://mail.python.org/mailman/listinfo/python-list