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/151336.html below:

[Python-Dev] Decision of having a deprecation period or not for changing csv.DictReader returning type.

[Python-Dev] Decision of having a deprecation period or not for changing csv.DictReader returning type. [Python-Dev] Decision of having a deprecation period or not for changing csv.DictReader returning type.Antoine Pitrou solipsis at pitrou.net
Sun Dec 17 05:29:34 EST 2017
On Sun, 17 Dec 2017 14:04:52 +0800
尚辉 <shangdahao at gmail.com> wrote:
> Hi, guys
> 
> In https://github.com/python/cpython/pull/4904, I made csv.DictReader
> returning regular dict instead of OrderedDict. But this code could break
> existing code that relied on methods like move_to_end() which are present
> in OrderedDict() but not in dict().

What is the motivation to return a regular dict?  Is it actually
faster on some benchmark?

PS: apparently the decision to return an OrderedDict was made in...
Python 3.6.

Regards

Antoine.


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