How do I get the name of the class I am currently in?
Example:
def get_input(class_name): [do things] return class_name_result class foo():
You can access it by the class' private attributes:
cls_name = self.__class__.__name__
EDIT:
As said by Ned Batcheler, this wouldn't work in the class body, but it would in a method.
Ned Batcheler