Skip to content

Commit a773471

Browse files
openclawopenclaw
authored andcommitted
docs: document TurtleGraphicsError
1 parent e5d4fa2 commit a773471

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/library/turtle.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ direction it is facing, drawing a line as it moves. Give it the command
5454
In Python, turtle graphics provides a representation of a physical "turtle"
5555
(a little robot with a pen) that draws on a sheet of paper on the floor.
5656

57+
.. exception:: TurtleGraphicsError
58+
59+
Exception raised when an invalid turtle graphics operation is requested,
60+
such as using an unsupported shape or an invalid color value.
61+
5762
It's an effective and well-proven way for learners to encounter
5863
programming concepts and interaction with software, as it provides instant,
5964
visible feedback. It also provides convenient access to graphical output

0 commit comments

Comments
 (0)