Serhiy Storchaka added the comment:
It is trivial.
def rotate(od, n):
for i in range(n):
k, v = od.popitem(False)
od[k] = v
And those functions look too specialized.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue17100>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com