Re: [Django] #30159: Remove obsolete use of OrderedDict with Python 3.6+

6 views
Skip to first unread message

Django

unread,
Apr 18, 2026, 5:30:47 PMApr 18
to django-...@googlegroups.com
#30159: Remove obsolete use of OrderedDict with Python 3.6+
-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: | Status: closed
Cleanup/optimization |
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: fixed
Keywords: ordereddict | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Jacob Walls <jacobtylerwalls@…>):

In [changeset:"7142667340f78403cbbcaa8f33703c494282b7b7" 71426673]:
{{{#!CommitTicketReference repository=""
revision="7142667340f78403cbbcaa8f33703c494282b7b7"
Replaced yaml serializer workaround to preserve dict order with PyYAML's
sort_keys=False.

The sort_keys parameter was added in PyYAML 5.1 (released March 2019).
The workaround was added in 24b82cd201e21060fbc02117dc16d1702877a1f3
(refs #30159).
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30159#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 19, 2026, 2:52:08 AMApr 19
to django-...@googlegroups.com
#30159: Remove obsolete use of OrderedDict with Python 3.6+
-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: | Status: closed
Cleanup/optimization |
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: fixed
Keywords: ordereddict | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"d33364c7ba330a349e38449c98494323a4ed7c8d" d33364c7]:
{{{#!CommitTicketReference repository=""
revision="d33364c7ba330a349e38449c98494323a4ed7c8d"
Removed OrderedDict representer from PyYAML serializer.

Added in 5bc3123479bd97dc9d8a36fa9a3421a71063d1da (refs #24558),
it was obsoleted when OrderedDict usage was removed in
24b82cd201e21060fbc02117dc16d1702877a1f3 (refs #30159).
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30159#comment:5>
Reply all
Reply to author
Forward
0 new messages