__name__

JB jimbag at kw.igs.net
Fri Jan 14 11:30:59 EST 2000


Could anyone tell me how to get a classes name:

class MyClass:
   def className( self ):
       return self.__name__

This doesn't fly. The docs say a class has the __name__ attribute but...

thanks
jb

-- 
There are bugs and then there are bugs.  And then there are bugs.
-- Karl Lehenbauer



More information about the Python-list mailing list