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

INADA Naoki songofacandy at gmail.com
Sun Dec 17 13:24:05 EST 2017


On Mon, Dec 18, 2017 at 12:46 AM, Guido van Rossum <guido at python.org> wrote:

My gut suggests me not to do this (neither here nor in other similar cases). I doubt there's much of a performance benefit anyway.

OrderedDict uses 2x memory than dict. So it affects memory usage of applications loading large CSV with DictReader.

While I think application should use tuple when memory consumption is matter, there is significant benefit.

INADA Naoki <songofacandy at gmail.com>



More information about the Python-Dev mailing list