+

What does the built-in class attribute __dict__ do in Python?

A special attribute of each module &__dict__. It is a dictionary containing the module`s symbol table. 

 object .__ dict__ 

Dictionary or other mapping object used to store attributes (writable) of an object.



Example

The following code shows how __dict__ works

< br>