[issue41931] Make dict(object) return its attribute __dict__

மனோஜ்குமார் பழனிச்சாமி report at bugs.python.org
Sun Oct 4 14:06:21 EDT 2020


மனோஜ்குமார் பழனிச்சாமி <smartmanoj42857 at gmail.com> added the comment:

Your point makes sense as it takes space to allocate for the new instance to just return another dict object. 
Then the attribute name at least should be meaningful.

Instead of __dict__ , __attr__ is more appropriate.

----------

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


More information about the Python-bugs-list mailing list