A list written directly in a Python class body belongs to the class, not to each object, so every object shares it. Create it inside __init__ (or use default_factory in a dataclass) to give each object its own list.

Read All