What is the __dict__.__dict__ attribute of a Python class?
What is the __dict__.__dict__ attribute of a Python class? Question: >>> class A(object): pass … >>> A.__dict__ <dictproxy object at 0x173ef30> >>> A.__dict__.__dict__ Traceback (most recent call last): File “<string>”, line 1, in <fragment> AttributeError: ‘dictproxy’ object has no attribute ‘__dict__’ >>> A.__dict__.copy() {‘__dict__’: <attribute ‘__dict__’ of ‘A’ objects> … } >>> A.__dict__[‘__dict__’] <attribute ‘__dict__’ …