how to get name of a class inside static method, i have inheritance and want name of derived class
IN following example what shall be there in place of XXX
I'm pretty sure that this is impossible for a static method. Use a class method instead:
class Snake(object): @classmethod def my_name(cls): print cls.__name__