Getting a class name

Harlin Seritt harlinseritt at yahoo.com
Sat Feb 17 15:29:24 EST 2007


Hi,

How does one get the name of a class from within the class code? I
tried something like this as a guess:

self.__name__

Obviously it didn't work.

Anyone know how to do that?

Thanks,

Harlin




More information about the Python-list mailing list