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.

Author terry.reedy
Recipients belopolsky, docs@python, eric.araujo, georg.brandl, gregorlingl, terry.reedy
Date 2010-10-30.22:01:57
SpamBayes Score 4.4842352e-11
Marked as misclassified No
Message-id <1288476119.48.0.394724333211.issue7061@psf.upfronthosting.co.za>
In-reply-to
Content
On initialization: the json doc has 6 examples. Each starts with 'import json' so each is independent. However, I agree that doing the same for turtle examples would be a bit much. On the other hand, I think
24.5.3. *Methods of RawTurtle/Turtle and corresponding functions*
should explicitly give the needed code. So I would change "Most of the examples in this section refer to a Turtle instance called turtle." to

"The examples below that refer to a Turtle instance called turtle require something like the following to be run first:

>>> from turtle import turtle; turtle = Turtle()
"

The three examples above turtle.shapetransform start with
>>> turtle.reset()
I presume they need that to run reliably. If it is also needed for the shapetransform example to run correctly, then I would just added it there too.

I will post more after I compare my original post to your revision.
History
Date User Action Args
2010-10-30 22:01:59terry.reedysetrecipients: + terry.reedy, georg.brandl, belopolsky, gregorlingl, eric.araujo, docs@python
2010-10-30 22:01:59terry.reedysetmessageid: <1288476119.48.0.394724333211.issue7061@psf.upfronthosting.co.za>
2010-10-30 22:01:58terry.reedylinkissue7061 messages
2010-10-30 22:01:57terry.reedycreate