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

Brett Cannon brett at python.org
Mon Dec 18 16:55:35 EST 2017


On Mon, 18 Dec 2017 at 07:30 Steve Holden <steve at holdenweb.com> wrote:

> I submitted the 3.6 patch that Raymond committed. The purpose of the
> change was to allow access to the ordering of the columns.
>
> It doesn't use any of the OrderedDict-only methods, and I'd be very
> surprised if a reversion to using dict in 3.7 would cause any tests to fail.
>

But as Guido pointed out, the expected interface of what gets returned
would be broken. I say just leave it as-is.

-Brett


>
> regards
>  Steve
>
> Steve Holden
>
> On Mon, Dec 18, 2017 at 6:30 AM, 尚辉 <shangdahao at gmail.com> wrote:
>
>> Since regular dicts are ordered in 3.7, it might be cleaner to returning regular dict instead of OrderedDict?
>>
>>
>> _______________________________________________
>> Python-Dev mailing list
>> Python-Dev at python.org
>> https://mail.python.org/mailman/listinfo/python-dev
>>
> Unsubscribe:
>> https://mail.python.org/mailman/options/python-dev/steve%40holdenweb.com
>>
>>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/brett%40python.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20171218/616c34d3/attachment.html>


More information about the Python-Dev mailing list