[issue17100] rotating an ordereddict

Serhiy Storchaka report at bugs.python.org
Sat Feb 2 12:12:50 CET 2013


Serhiy Storchaka added the comment:

> Does your deque-like implementation preserve O(1) deletion?

Ah, OrderedDict should provide O(1) deletion for arbitrary key. Then deque-
like implementation should use variable-size chunks and rotate_at() / 
rotate_after() are possible with O(1).

----------

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


More information about the Python-bugs-list mailing list