GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing mail.python.org — [Python-Dev] Guarantee ordered dict literals in v3.7? [Python-Dev] Guarantee ordered dict literals in v3.7?Eric V. Smith eric at trueblade.comTue Dec 19 02:53:47 EST 2017
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.
More information about the Python-Dev mailing list |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |