[issue32411] Idlelib.browser: stop sorting dicts created by pyclbr

Cheryl Sabella report at bugs.python.org
Mon Dec 25 19:02:15 EST 2017


Cheryl Sabella <chekat2 at gmail.com> added the comment:

Terry,

I'm not sure if I phrased my initial question correctly.  I've made a pull request to show you what I was thinking.

What I had tried to show with the test case change is that, prior to the guarantee of insertion order on the dictionary, the check `eq(tcl, [C0, f0])` would have failed without the sort because `transform_children` would have returned `[f0, C0]`.  With the sort in place or with the guarantee insertion order, this test doesn't fail.

Thanks!

----------
stage: patch review -> test needed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32411>
_______________________________________


More information about the Python-bugs-list mailing list