Skip to content

Commit be4dcbf

Browse files
author
marat
committed
Update reset method docs
1 parent 31873d3 commit be4dcbf

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

Doc/library/turtle.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,12 +1397,11 @@ More drawing control
13971397
.. function:: reset()
13981398

13991399
Delete the turtle's drawings from the screen. Move the turtle
1400-
to position ``(0, 0)``, set its heading to the default
1401-
(facing east in standard mode) and restore the following state
1402-
variables to their initial values:
1400+
to position ``(0, 0)``, set its heading 0 and restore the
1401+
following state variables to their initial values:
14031402

14041403
* position: ``(0, 0)``
1405-
* heading: ``0`` (east)
1404+
* heading: ``0`` (east if standard or world mode, north if logo mode)
14061405
* pen state: down (drawing)
14071406
* pensize: ``1``
14081407
* pencolor: black
@@ -2647,7 +2646,7 @@ facilities:
26472646
"orange"
26482647
>>> screen.bgcolor(0.5,0,0.5)
26492648
>>> screen.bgcolor()
2650-
"#800080"
2649+
"rgba(128, 0, 128, 1)"
26512650

26522651
>>> help(Turtle.penup)
26532652
Help on method penup in module turtle:

Lib/turtle.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2646,12 +2646,11 @@ def reset(self):
26462646
No argument.
26472647
26482648
Delete the turtle's drawings from the screen. Move the turtle
2649-
to position `(0, 0)`, set its heading to the default
2650-
(facing east in standard mode) and restore the following state
2651-
variables to their initial values:
2649+
to position `(0, 0)`, set its heading to 0 and restore
2650+
the following state variables to their initial values:
26522651
26532652
- position: `(0, 0)`
2654-
- heading: `0` (east)
2653+
- heading: `0` (east if standard or world mode, north if logo mode)
26552654
- pen state: down (drawing)
26562655
- pensize: `1`
26572656
- pencolor: black

0 commit comments

Comments
 (0)