Harlin Seritt wrote: > 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__ Get the class first, then inspect its name: >>> class Foo(object): pass ... >>> f = Foo() >>> f.__class__.__name__ 'Foo' >>> HTH -- d.