[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.



More information about the Python-Dev mailing list