]> granicus.if.org Git - python/commit
bpo-34320: Fix dict(o) didn't copy order of dict subclass (GH-8624)
authorINADA Naoki <methane@users.noreply.github.com>
Wed, 26 Sep 2018 03:59:00 +0000 (12:59 +0900)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 26 Sep 2018 03:59:00 +0000 (20:59 -0700)
commit2aaf98c16ae3070378de523a173e29644037d8bd
tree78b0a34f1d41d23a8b66e607a30fedfd2eb2a352
parentd345bb4d9b6e16c681cd8a4e1fff94ecd6b0bb09
bpo-34320: Fix dict(o) didn't copy order of dict subclass (GH-8624)

When dict subclass overrides order (`__iter__()`, `keys()`, and `items()`), `dict(o)`
should use it instead of dict ordering.

https://bugs.python.org/issue34320
Lib/test/test_builtin.py
Lib/test/test_call.py
Lib/test/test_dict.py
Misc/NEWS.d/next/Core and Builtins/2018-08-02-22-34-59.bpo-34320.hNshAA.rst [new file with mode: 0644]
Objects/dictobject.c