classification
Title: Cmd example using turtle left vs. right doc-bug
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.2, Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: Gumnos, docs@python, ezio.melotti, python-dev, sandro.tosi, terry.reedy
Priority: normal Keywords: patch

Created on 2011-09-09 00:04 by Gumnos, last changed 2011-09-10 07:15 by ezio.melotti. This issue is now closed.

Files
File name Uploaded Description Edit
issue12940.diff Gumnos, 2011-09-09 23:48 Patch to fix review
Messages (7)
msg143746 - (view) Author: Tim Chase (Gumnos) * Date: 2011-09-09 00:04
The Turtle example for the cmd module as documented at

http://docs.python.org/py3k/library/cmd.html#cmd-example

In the left() method, it calls turtle.right() instead of turtle.left().  Easy fix: /def left/+2s/left/right/

Likely exists in most 3.x documentation.
msg143747 - (view) Author: Tim Chase (Gumnos) * Date: 2011-09-09 00:05
(duh, sorry, that's the "do_left" method, not the "left" method)
msg143794 - (view) Author: Tim Chase (Gumnos) * Date: 2011-09-09 19:29
I see the status changed to needs-patch.  what do I patch against?
msg143797 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2011-09-09 19:48
3.2. Any patch should trivially port to 3.3 and 2.7
msg143817 - (view) Author: Tim Chase (Gumnos) * Date: 2011-09-09 23:48
Patch attached.
msg143832 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-09-10 07:13
New changeset 1ab62d3b96d2 by Ezio Melotti in branch '3.2':
#12940: fix cmd example.  Patch by Tim Chase.
http://hg.python.org/cpython/rev/1ab62d3b96d2

New changeset b239b7d9f752 by Ezio Melotti in branch 'default':
#12940: merge with 3.2.
http://hg.python.org/cpython/rev/b239b7d9f752
msg143833 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2011-09-10 07:15
Fixed, thanks for the report and the patch!
2.7 doesn't have the example, so there's nothing to fix there.
History
Date User Action Args
2011-09-10 07:15:37ezio.melottisetstatus: open -> closed
versions: + Python 3.2
messages: + msg143833

assignee: docs@python -> ezio.melotti
resolution: fixed
stage: needs patch -> resolved
2011-09-10 07:13:30python-devsetnosy: + python-dev
messages: + msg143832
2011-09-09 23:48:56Gumnossetfiles: + issue12940.diff
keywords: + patch
messages: + msg143817

versions: - Python 2.7, Python 3.2
2011-09-09 19:48:24terry.reedysetnosy: + terry.reedy

messages: + msg143797
versions: + Python 2.7, Python 3.2
2011-09-09 19:29:05Gumnossetmessages: + msg143794
2011-09-09 00:42:04ezio.melottisetnosy: + ezio.melotti, sandro.tosi

stage: needs patch
2011-09-09 00:05:44Gumnossetmessages: + msg143747
2011-09-09 00:04:52Gumnoscreate