New submission from Alexey Luchko l...@ank-sia.com:
OrderedDict.viewitems() is expected to preserve item order like items() do
from collections import OrderedDict
d = OrderedDict([(1, 2), (a, b)])
d.items()
[(1, 2), ('a', 'b')]
But it does not:
list(d.viewitems())
[('a', 'b'), (1, 2)]
Changes by Benjamin Peterson benja...@python.org:
--
assignee: - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9626
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
The effort to backport dictviews was incomplete.
Fixed in r84148.
Thanks for the report.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org