Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python get current class name

class Clazz():
    def getName(self):
        return self.__class__.__name__
      
      
>>Clazz().c()
'Clazz'
Comment

PREVIOUS NEXT
Code Example
Python :: how to concatenate dataframe in python 
Python :: python defaultdict(list) 
Python :: django password field 
Python :: Find unique values in all columns in Pandas DataFrame 
Python :: python return using if 
Python :: sort folders content by name python 
Python :: group by 2 unique attributes pandas 
Python :: reverse a string python 
Python :: udp server python 
Python :: basic script 
Python :: get function in dictionary 
Python :: feature selection python 
Python :: python timer() 
Python :: planets code 
Python :: python read video frames 
Python :: django datepicker 
Python :: Create a single executable from a Python project 
Python :: how to use a function to find the average in python 
Python :: pyttsx3 save audio 
Python :: python readlines end of file 
Python :: remove specific character from object in pandas column using iloc 
Python :: python documentation 
Python :: pandas exclude rows from another dataframe 
Python :: python beginner projects 
Python :: Django populate form from database 
Python :: pandas df sample 
Python :: depth first search python 
Python :: random.sample python 
Python :: how to create python environment 
Python :: file methods in python 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =