This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: collections.deque rotate(n=1) default value not documented
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.8, Python 3.7, Python 3.6, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: docs@python, rhettinger, serhiy.storchaka, yuy
Priority: normal Keywords: patch

Created on 2018-02-01 05:44 by yuy, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 5485 merged rhettinger, 2018-02-02 03:12
PR 5514 merged miss-islington, 2018-02-03 16:46
PR 5515 merged miss-islington, 2018-02-03 16:47
PR 5517 merged rhettinger, 2018-02-03 21:30
PR 5528 merged rhettinger, 2018-02-04 16:17
PR 5530 merged miss-islington, 2018-02-04 17:16
PR 5531 merged miss-islington, 2018-02-04 17:17
PR 5532 merged rhettinger, 2018-02-04 17:25
Messages (7)
msg311403 - (view) Author: Yang Yu (yuy) Date: 2018-02-01 05:44
https://docs.python.org/3/library/collections.html#collections.deque

rotate() works the same as rotate(1). The documentation did not mention the default for n.
msg311467 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2018-02-01 20:39
Thanks for noticing this.
msg311559 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2018-02-03 16:46
New changeset 589c718a8e3bde017350f248f7f1c009240eb52b by Raymond Hettinger in branch 'master':
bpo-32739: Show default value for rotate() (GH-5485)
https://github.com/python/cpython/commit/589c718a8e3bde017350f248f7f1c009240eb52b
msg311560 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2018-02-03 17:08
New changeset 52f745852e49498d7dd86fd309ae57f6a7af568f by Raymond Hettinger (Miss Islington (bot)) in branch '3.7':
bpo-32739: Show default value for rotate() (GH-5485) (GH-5514)
https://github.com/python/cpython/commit/52f745852e49498d7dd86fd309ae57f6a7af568f
msg311569 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2018-02-03 18:27
New changeset 7eb3d1e7da42112ba879a5f8602891fa17963f9e by Raymond Hettinger (Miss Islington (bot)) in branch '3.6':
bpo-32739: Show default value for rotate() (GH-5485) (GH-5515)
https://github.com/python/cpython/commit/7eb3d1e7da42112ba879a5f8602891fa17963f9e
msg311574 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2018-02-03 21:57
New changeset 42e8ea9f69c133a4bbb9e496f68a05926b99c2da by Raymond Hettinger in branch '2.7':
bpo-32739: Show default value for rotate() (GH-5517)
https://github.com/python/cpython/commit/42e8ea9f69c133a4bbb9e496f68a05926b99c2da
msg311590 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-02-04 06:36
Isn't there a missed "not"?
History
Date User Action Args
2022-04-11 14:58:57adminsetgithub: 76920
2018-02-04 22:27:06rhettingersetstatus: open -> closed
stage: patch review -> resolved
2018-02-04 17:25:30rhettingersetpull_requests: + pull_request5359
2018-02-04 17:17:05miss-islingtonsetpull_requests: + pull_request5358
2018-02-04 17:16:23miss-islingtonsetpull_requests: + pull_request5357
2018-02-04 16:17:22rhettingersetstage: resolved -> patch review
pull_requests: + pull_request5355
2018-02-04 06:36:09serhiy.storchakasetstatus: closed -> open
nosy: + serhiy.storchaka
messages: + msg311590

2018-02-03 22:32:43rhettingersetstatus: open -> closed
stage: patch review -> resolved
resolution: fixed
versions: + Python 2.7
2018-02-03 21:57:04rhettingersetmessages: + msg311574
2018-02-03 21:30:50rhettingersetpull_requests: + pull_request5349
2018-02-03 18:27:42rhettingersetmessages: + msg311569
2018-02-03 17:08:44rhettingersetmessages: + msg311560
2018-02-03 16:47:37miss-islingtonsetpull_requests: + pull_request5347
2018-02-03 16:46:38miss-islingtonsetpull_requests: + pull_request5346
2018-02-03 16:46:36rhettingersetmessages: + msg311559
2018-02-02 03:13:55rhettingersetversions: + Python 3.7, Python 3.8
2018-02-02 03:12:59rhettingersetkeywords: + patch
stage: patch review
pull_requests: + pull_request5315
2018-02-01 20:39:25rhettingersetassignee: docs@python -> rhettinger

messages: + msg311467
nosy: + rhettinger
2018-02-01 05:44:53yuycreate