#__dict__

[ follow ]
#python
fromPythonmorsels
5 days ago
Python

__dict__: where Python stores attributes

Python stores attributes for instances, classes, and modules in their __dict__ dictionaries, mapping attribute names to values.
fromRealpython
2 months ago
Python

Working With Python's .__dict__ Attribute Quiz - Real Python

Understanding Python's __dict__ attribute clarifies attribute storage, object attribute ownership, mappingproxy behavior, and the role of __slots__.
[ Load more ]