xxxxxxxxxx
A special attribute of every module is __dict__. This is the dictionary containing the module’s symbol table.
object.__dict__
A dictionary or other mapping object used to store an object’s (writable) attributes.
Example:
class MyClass(object):
class_var = 1
def __init__(self, i_var):
self.i_var = i_var
foo = MyClass(2)
bar = MyClass(3)
print MyClass.__dict__
print foo.__dict__
print bar.__dict__