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

2020-10-04 Thread மனோஜ்குமார் பழனிச்சாமி
மனோஜ்குமார் பழனிச்சாமி 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.

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

2020-10-04 Thread மனோஜ்குமார் பழனிச்சாமி
மனோஜ்குமார் பழனிச்சாமி 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

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

2020-10-04 Thread மனோஜ்குமார் பழனிச்சாமி
மனோஜ்குமார் பழனிச்சாமி added the comment: Will return only if it is not an iterator -- ___ Python tracker <https://bugs.python.org/issue41931> ___ ___ Python-bug

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

2020-10-04 Thread மனோஜ்குமார் பழனிச்சாமி
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.