I have a class
class MyClass(object):
ClassTag = '!' + 'MyClass'
Instead of explicitly assigning 'MyClass' I would like to use some construct to get the class name. If I were inside a class function, I would do something like
@classfunction
def Foo(cls):
tag = '!' + cls.__class__.__name__
but here I am in class scope but not inside any function scope. What would be the correct way to address this?
Thank you very much
definstead ofclass-- now fixed.