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 in method my_name()
class snake()
@staticmethod
def my_name():
print XXX.__name___
class python (snake)
pass
class cobra (snake)
pass
python.my_name()
# I want output to be python
cobra.my_name()
# I want output to be cobra