[New-bugs-announce] [issue16553] named kwd form of OrderedDict ctor yield random key order
yop
report at bugs.python.org
Sun Nov 25 21:38:07 CET 2012
New submission from yop:
tested on 2.7.3 with -R or stock 3.3, the following:
OrderedDict(foo=0,bar=0).keys()
is nondeterminstic as a result of hash randomization.
probably since **kwds creates a dict.
what is the proper idiom for constructing an ordered-key
dictionary other then (ugly, verbose) piecemeal insertion?
----------
components: Library (Lib)
messages: 176387
nosy: benjamin.peterson, rhettinger, yop
priority: normal
severity: normal
status: open
title: named kwd form of OrderedDict ctor yield random key order
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16553>
_______________________________________
More information about the New-bugs-announce
mailing list