[issue29251] [doc] Class __dict__ is only a mapping proxy

Stanley report at bugs.python.org
Sat Feb 26 23:33:01 EST 2022


Stanley <ostanley.lee at gmail.com> added the comment:

>From what I can see, the original patch changed

... and the *dict* dictionary is the namespace containing definitions for class body and is copied to a standard dictionary to become the __dict__ attribute

into this

... and the *dict* dictionary is copied to the namespace containing definitions for the class body, which is referenced by the __dict__ attribute

so that the documentation avoids saying that the attribute is a dictionary, instead saying it just references a dictionary. However, current documentation says that

... it may be copied or wrapped before becoming the __dict__ attribute

which implies some sort of change already. In this case, is the patch for the functions page still applicable?

----------
nosy: +slateny

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue29251>
_______________________________________


More information about the Python-bugs-list mailing list