Hey there,
Do you know if it’s possible to dynamically querry a class name from inside the class definition?
This would be usefull to create snippets in VSCode and avoid forgetting to change the super call.
Something like this:
class Real_class_name(Super_class):
def __init__(self):
getClassName = ???
super(getClassName, self).__init__()
...
Where ???
would be a function that returns 'Real_class_name'
Because of Maya, I have to work with Python 27, but I’d be interested to know if this exists in either version of Python.
Thanks