[issue12677] Turtle, fix right/left rotation orientation

New submission from Sandro Tosi <sandro.tosi@gmail.com>: Hello, following up http://mail.python.org/pipermail/docs/2011-July/005235.html here's 2 patch (for 3.3 + 3.2 and 2.7) to correct the orientation in the documentation, using turtle.right instead of turtle.left, since the work 'counterclockwise' (even if correct and already used) might be "too heavy". I don't think the sense of the introductory part is voided with the change in the method name instead of fixing what it does. ---------- assignee: docs@python components: Documentation files: turtle_right-default.patch keywords: patch messages: 141511 nosy: docs@python, sandro.tosi priority: normal severity: normal stage: patch review status: open title: Turtle, fix right/left rotation orientation versions: Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file22818/turtle_right-default.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue12677> _______________________________________

Changes by Sandro Tosi <sandro.tosi@gmail.com>: Added file: http://bugs.python.org/file22819/turtle_right-2.7.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue12677> _______________________________________

Ezio Melotti <ezio.melotti@gmail.com> added the comment: It seems to me that right() always turns the turtle clockwise, both with the "standard" and the "logo" mode. I agree that changing left->right and leave clockwise is better than changing clockwise->counterclockwise. I don't think it's worth mentioning the mode here. (On a side note: I was expecting the 'turtle' to be an instance of some Turtle class defined in the turtle module, or perhaps a singleton, but it turned out that in 'turtle.right()' turtle is the module itself. It might be better to say something like "After importing the :mod:`turtle` module, ...".) ---------- nosy: +ezio.melotti _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue12677> _______________________________________

Sandro Tosi <sandro.tosi@gmail.com> added the comment: As mentioned by Ezio, and I also verified myself, mode() doesn't influence the orientation on left()/right() methods (probably it affects some other functs?). Following was Ezio and I discussed on IRC, I've updated the 2 patches to add a small note that you have to import turtle before trying the mentioned commands. ---------- Added file: http://bugs.python.org/file22834/turtle_right-default-v2.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue12677> _______________________________________

Changes by Sandro Tosi <sandro.tosi@gmail.com>: Added file: http://bugs.python.org/file22835/turtle_right-2.7-v2.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue12677> _______________________________________

Senthil Kumaran <senthil@uthcode.com> added the comment: Sandro - You could go ahead and commit this. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue12677> _______________________________________

Roundup Robot <devnull@psf.upfronthosting.co.za> added the comment: New changeset a30e6c4bf486 by Sandro Tosi in branch '2.7': #12677: correct turtle orientation in doc http://hg.python.org/cpython/rev/a30e6c4bf486 New changeset bf4f65043d7d by Sandro Tosi in branch '3.2': #12677: correct turtle orientation in doc http://hg.python.org/cpython/rev/bf4f65043d7d New changeset a7365994f4d6 by Sandro Tosi in branch 'default': #12677: merge with 3.2 http://hg.python.org/cpython/rev/a7365994f4d6 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue12677> _______________________________________

Changes by Sandro Tosi <sandro.tosi@gmail.com>: ---------- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue12677> _______________________________________
participants (4)
-
Ezio Melotti
-
Roundup Robot
-
Sandro Tosi
-
Senthil Kumaran