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 <rep...@bugs.python.org>
<http://bugs.python.org/issue17100>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to