This commit is contained in:
Raymond Hettinger 2011-06-25 11:50:00 +02:00
commit 91b79afa3a
1 changed files with 2 additions and 2 deletions

View File

@ -821,10 +821,10 @@ the items are returned in the order their keys were first added.
>>> d = OrderedDict.fromkeys('abcde')
>>> d.move_to_end('b')
>>> ''.join(d.keys)
>>> ''.join(d.keys())
'acdeb'
>>> d.move_to_end('b', last=False)
>>> ''.join(d.keys)
>>> ''.join(d.keys())
'bacde'
.. versionadded:: 3.2