[issue29431] Add a PYTHONREVERSEDICTKEYORDER environment variable

R. David Murray report at bugs.python.org
Fri Feb 3 15:50:27 EST 2017


R. David Murray added the comment:

But that reliance/reproducibility-error would be an issue only on interpreters that don't preserve insertion order, and we're expecting we'll make that a language requirement.  So for now, or for as long as you think it is warranted, just test against interpreters that randomize the order.

Note that this is different from the pre-randomization dict behavior, where lots of programs depended on the accident-of-the-implementation order in which keys were returned.  What we think is coming is a guaranteed ordering, which is, thus, reproducible.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29431>
_______________________________________


More information about the Python-bugs-list mailing list