mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Fix typo (reported by Hiro Ashiya).
This commit is contained in:
commit
f68f7148d1
1 changed files with 2 additions and 2 deletions
|
|
@ -900,10 +900,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue