Question
How to get (sub)class name from a static method in Python?
If I define:
class Bar(object):
@staticmethod
def bar():
# code
pass
class Foo(Bar):
# code
pass
Is it possible for a function call Foo.bar() to determine the class name Foo?
45 20096
45