[Python-Dev] Guarantee ordered dict literals in v3.7? (original) (raw)
Eric V. Smith eric at trueblade.com
Tue Dec 19 02:53:47 EST 2017
- Previous message (by thread): [Python-Dev] Guarantee ordered dict literals in v3.7?
- Next message (by thread): [Python-Dev] Guarantee ordered dict literals in v3.7?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 12/19/2017 2:38 AM, Steve Dower wrote:
On 18Dec2017 2309, Steven D'Aprano wrote:
[A LOT OF THINGS I AGREE WITH] I agree completely with Steven's reasoning here, and it bothers me that what is an irrelevant change to many users (dict becoming ordered) seems to imply that all users of dict have to be updated. I have never needed OrderedDict before, and dict now also being ordered doesn't mean that when I reach for it I'm doing it because I need an ordered dict - I probably just need a regular dict. Nothing about dict should change for me between versions. Adding an option to pprint to explicitly control sorting without changing the default is fine. Please stop assuming that everyone wants an OrderedDict when they say dict. It's an invalid assumption.
Well said, Steve and Steven. I completely agree.
Eric.
- Previous message (by thread): [Python-Dev] Guarantee ordered dict literals in v3.7?
- Next message (by thread): [Python-Dev] Guarantee ordered dict literals in v3.7?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]