[New-bugs-announce] [issue16276] OrderedDict constructor do not keep items order

Antoine Dechaume report at bugs.python.org
Thu Oct 18 11:33:33 CEST 2012


New submission from Antoine Dechaume:

Example:

from collections import OrderedDict
print OrderedDict(a=0,b=1,c=2)

I get
OrderedDict([('a', 0), ('c', 2), ('b', 1)])

I expected
OrderedDict([('a', 0), ('b', 1), ('c', 2)])

----------
components: Library (Lib)
messages: 173247
nosy: ADechaume
priority: normal
severity: normal
status: open
title: OrderedDict constructor do not keep items order
type: behavior
versions: Python 2.7

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


More information about the New-bugs-announce mailing list