mirror of
https://github.com/python/cpython.git
synced 2025-10-01 12:52:18 +00:00
merge
This commit is contained in:
commit
91b79afa3a
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue