-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
bpo-32739: Show default value for rotate() #5485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Doc/library/collections.rst
Outdated
| .. 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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we are here, is it worth to add an example for rotating one step to the left?
|
Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7. |
(cherry picked from commit 589c718) Co-authored-by: Raymond Hettinger <[email protected]>
|
GH-5514 is a backport of this pull request to the 3.7 branch. |
(cherry picked from commit 589c718) Co-authored-by: Raymond Hettinger <[email protected]>
|
GH-5515 is a backport of this pull request to the 3.6 branch. |
| 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the deque is empty?
(cherry picked from commit 589c718) Co-authored-by: Raymond Hettinger <[email protected]>
(cherry picked from commit 589c718) Co-authored-by: Raymond Hettinger <[email protected]>
https://bugs.python.org/issue32739