Message377940
dict is not a function, it's a class and the purpose of a dict() call is to create a new instance of that class.
The change you are proposing is also breaking for iterators:
>>> class Pairs(list): pass
...
>>> pairs = Pairs([('a', 1), ('b', 2)])
>>> pairs.__dict__
{}
>>> dict(pairs)
{'a': 1, 'b': 2}
A change of this magnitude will need to be discussed on python-ideas and will require a PEP explaining why the benefits of the change outweigh its costs. I very much doubt that they do. |
|
Date |
User |
Action |
Args |
2020-10-04 14:17:27 | iritkatriel | set | recipients:
+ iritkatriel, SmartManoj |
2020-10-04 14:17:27 | iritkatriel | set | messageid: <1601821047.33.0.238039916415.issue41931@roundup.psfhosted.org> |
2020-10-04 14:17:27 | iritkatriel | link | issue41931 messages |
2020-10-04 14:17:27 | iritkatriel | create | |
|