Using Python's .__dict__ to Wo... Note
Real Python

Using Python's .__dict__ to Work With Attributes

In this tutorial, you'll dive deeper into the .__dict__ attribute in Python objects. This attribute is a dictionary-like object that holds writable class or instance attributes. It allows you to manage attributes at a low level, making your classes flexible and efficient.