Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
589c718a
Commit
589c718a
authored
Feb 03, 2018
by
Raymond Hettinger
Committed by
GitHub
Feb 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-32739: Show default value for rotate() (GH-5485)
parent
38bfa841
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
Doc/library/collections.rst
Doc/library/collections.rst
+7
-4
No files found.
Doc/library/collections.rst
View file @
589c718a
...
...
@@ -509,11 +509,14 @@ or subtracting from an empty counter.
.. versionadded:: 3.2
.. method:: rotate(n)
.. method:: rotate(n
=1
)
Rotate the deque *n* steps to the right. If *n* is negative, rotate to
the left. Rotating one step to the right is equivalent to:
``d.appendleft(d.pop())``.
Rotate the deque *n* steps to the right. If *n* is negative, rotate
to the left.
When the deque is empty, rotating one step to the right is equivalent
to ``d.appendleft(d.pop())``, and rotating one step to the left is
equivalent to ``d.append(d.popleft())``.
Deque objects also provide one read-only attribute:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment