A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-December/151380.html below:

[Python-Dev] Guarantee ordered dict literals in v3.7?

[Python-Dev] Guarantee ordered dict literals in v3.7? [Python-Dev] Guarantee ordered dict literals in v3.7?Eric V. Smith eric at trueblade.com
Tue 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4