[redblueblack built-in class attributes every python class keeps following built-in attributes and they can be accessed using dot operator like any other attribute __dict__ dictionary containing the class' namespace __doc__ class documentation string or noneif undefined __name__ class name __module__ module name in which the class is defined this attribute is "__main__in interactive mode __bases__ possibly empty tuple containing the base classesin the order of their occurrence in the base class list examplefor the above class let us try to access all these attributes classemployee'common base class for all employeesempcount = def __init__(selfnamesalary)self name name self salary salary employee empcount += def displaycount(self)print"total employee % "%employee empcount def displayemployee(self)print"name ",self name,"salary",self salary print"employee __doc__:",employee __doc__ print"employee __name__:",employee __name__ print"employee __module__:",employee __module__ print"employee __bases__:",employee __bases__ print"employee __dict__:",employee __dict__ outputwhen the above code is executedit produces the following result employee __doc__common base class for all employees employee __name__employee employee __module____main__ employee __bases__(employee __dict__{'__module__''__main__''displaycount'