You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make the dict type used in csv.DictReader configurable #76520
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2017-12-15.19:00:53.576>labels= ['3.7', 'easy', 'type-feature', 'library']
title='Make the dict type used in csv.DictReader configurable'updated_at=<Date2021-12-17.11:07:10.801>user='https://github.com/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.
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.
aisk commented on Dec 17, 2021
aiskmannequin
Mannequin
More actions
As #4904 is closed now, I think this issue should be closed now?
Activity
serhiy-storchaka commentedon Dec 15, 2017
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.
rhettinger commentedon Dec 16, 2017
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.
aisk commentedon Dec 17, 2021
As #4904 is closed now, I think this issue should be closed now?