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
dataclasses: no need for OrderedDict now that dict guarantees to keep insertion order #76687
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='https://github.com/ericvsmith'closed_at=<Date2018-03-21.09:24:43.437>created_at=<Date2018-01-06.22:23:30.826>labels= ['3.7', 'type-bug', 'library']
title='dataclasses: no need for OrderedDict now that dict guarantees to keep insertion order'updated_at=<Date2018-03-21.09:24:43.436>user='https://github.com/ericvsmith'
There are several places where OrderedDict escapes from dataclasses. Switching to dict means we don't have to use OrderedDict forever.
For the 3.6 backport, I'm also going to use dict. I saw an analysis (from Raymond, maybe?) that says there are no 3.6 implementations that don't guarantee insertion order for dict.
Activity
ericvsmith commentedon Jan 6, 2018
There are several places where OrderedDict escapes from dataclasses. Switching to dict means we don't have to use OrderedDict forever.
For the 3.6 backport, I'm also going to use dict. I saw an analysis (from Raymond, maybe?) that says there are no 3.6 implementations that don't guarantee insertion order for dict.
ericvsmith commentedon Jan 7, 2018
New changeset d138892 by Eric V. Smith in branch 'master':
bpo-32506: Change dataclasses from OrderedDict to plain dict. (gh-5131)
d138892