மனோஜ்குமார் பழனிச்சாமி added the comment:
Changing '__dict__' to __vars__ will be much better.
Like len() calling __len__()
Can we change the title?
Why Github Issue Tracker is not issued?
--
___
Python tracker
<https://bugs.python.
மனோஜ்குமார் பழனிச்சாமி 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
மனோஜ்குமார் பழனிச்சாமி added the comment:
Will return only if it is not an iterator
--
___
Python tracker
<https://bugs.python.org/issue41931>
___
___
Python-bug
Change by மனோஜ்குமார் பழனிச்சாமி :
--
nosy: SmartManoj
priority: normal
severity: normal
status: open
title: Make dict(object) return its attribute __dict__
type: enhancement
versions: Python 3.10
___
Python tracker
<https://bugs.python.