[issue32339] Make the dict type used in csv.DictReader configurable

2021-12-17 Thread AnLong
AnLong added the comment: As https://github.com/python/cpython/pull/4904 is closed now, I think this issue should be closed now? -- nosy: +asaka ___ Python tracker ___

[issue32339] Make the dict type used in csv.DictReader configurable

2017-12-16 Thread shangdahao
Change by shangdahao : -- keywords: +patch pull_requests: +4799 stage: needs patch -> patch review ___ Python tracker ___

[issue32339] Make the dict type used in csv.DictReader configurable

2017-12-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: For csv.DictReader and collections.namedtuple._asdict, it might be cleaner to just deprecate the OrderedDict in favor of returning regular dict. I suspect that in these contexts, no one really wants an actual OrderedDict.

[issue32339] Make the dict type used in csv.DictReader configurable

2017-12-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Since 3.6 csv.DictReader emits OrderedDicts instead of regular dicts. Since regular dicts are ordered in 3.7, this is an overkill. It would be nice to add a configuration option for a return type. This is an easy issue.