mirror of https://github.com/python/cpython
merge
This commit is contained in:
commit
91b79afa3a
|
@ -821,10 +821,10 @@ the items are returned in the order their keys were first added.
|
||||||
|
|
||||||
>>> d = OrderedDict.fromkeys('abcde')
|
>>> d = OrderedDict.fromkeys('abcde')
|
||||||
>>> d.move_to_end('b')
|
>>> d.move_to_end('b')
|
||||||
>>> ''.join(d.keys)
|
>>> ''.join(d.keys())
|
||||||
'acdeb'
|
'acdeb'
|
||||||
>>> d.move_to_end('b', last=False)
|
>>> d.move_to_end('b', last=False)
|
||||||
>>> ''.join(d.keys)
|
>>> ''.join(d.keys())
|
||||||
'bacde'
|
'bacde'
|
||||||
|
|
||||||
.. versionadded:: 3.2
|
.. versionadded:: 3.2
|
||||||
|
|
Loading…
Reference in New Issue