Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue32506

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:dataclasses: no need for OrderedDict now that dict guarantees to keep insertion order
Type:behaviorStage:resolved
Components:Library (Lib)Versions:Python 3.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To: eric.smithNosy List: eric.smith
Priority:normalKeywords:patch

Created on2018-01-06 22:23 byeric.smith, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 5130closederic.smith,2018-01-07 16:31
PR 5131mergederic.smith,2018-01-07 16:34
Messages (2)
msg309587 -(view)Author: Eric V. Smith (eric.smith)*(Python committer)Date: 2018-01-06 22:23
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.
msg309634 -(view)Author: Eric V. Smith (eric.smith)*(Python committer)Date: 2018-01-07 19:30
New changesetd13889214a4c81b78fa8683d35bdbd17ff22f4fe by Eric V. Smith in branch 'master':bpo-32506: Change dataclasses from OrderedDict to plain dict. (gh-5131)https://github.com/python/cpython/commit/d13889214a4c81b78fa8683d35bdbd17ff22f4fe
History
DateUserActionArgs
2022-04-11 14:58:56adminsetgithub: 76687
2018-03-21 09:24:43eric.smithsetstatus: open -> closed
dependencies: -Dict order is now guaranteed, so add tests and doc for it
resolution: fixed
stage: patch review -> resolved
2018-01-07 19:30:19eric.smithsetmessages: +msg309634
2018-01-07 16:34:15eric.smithsetpull_requests: +pull_request4992
2018-01-07 16:31:27eric.smithsetkeywords: +patch
stage: patch review
pull_requests: +pull_request4991
2018-01-07 07:47:40serhiy.storchakasetdependencies: +Dict order is now guaranteed, so add tests and doc for it
components: + Library (Lib)
2018-01-06 22:23:30eric.smithcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp