Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get current class name

class Clazz():
    def getName(self):
        return self.__class__.__name__
      
      
>>Clazz().c()
'Clazz'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #current #class
ADD COMMENT
Topic
Name
7+1 =