[issue9626] OderedDict.viewitems() does not preserve item order

2010-08-17 Thread Alexey Luchko
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)]

[issue9626] OderedDict.viewitems() does not preserve item order

2010-08-17 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9626 ___

[issue9626] OderedDict.viewitems() does not preserve item order

2010-08-17 Thread Raymond Hettinger
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