This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients SmartManoj, iritkatriel
Date 2020-10-04.14:17:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601821047.33.0.238039916415.issue41931@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-10-04 14:17:27iritkatrielsetrecipients: + iritkatriel, SmartManoj
2020-10-04 14:17:27iritkatrielsetmessageid: <1601821047.33.0.238039916415.issue41931@roundup.psfhosted.org>
2020-10-04 14:17:27iritkatriellinkissue41931 messages
2020-10-04 14:17:27iritkatrielcreate