[issue16553] named kwd form of OrderedDict ctor yield random key order

2012-11-25 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue16553] named kwd form of OrderedDict ctor yield random key order

2012-11-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: It's random anyway, since keyword arguments have no order. You can use a tuple. -- ___ Python tracker ___ __

[issue16553] named kwd form of OrderedDict ctor yield random key order

2012-11-25 Thread yop
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, verbo