DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+1 =
Submit