Message120025
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. |
|
Date |
User |
Action |
Args |
2010-10-30 22:01:59 | terry.reedy | set | recipients:
+ terry.reedy, georg.brandl, belopolsky, gregorlingl, eric.araujo, docs@python |
2010-10-30 22:01:59 | terry.reedy | set | messageid: <1288476119.48.0.394724333211.issue7061@psf.upfronthosting.co.za> |
2010-10-30 22:01:58 | terry.reedy | link | issue7061 messages |
2010-10-30 22:01:57 | terry.reedy | create | |
|