Is it possible to get the name of a subclass? For example:
class Foo: def bar(self): print type(self) class SubFoo(Foo): pass SubFoo().bar
you can use
SubFoo().__class__.__name__
which might be off-topic, since it gives you a class name :)