Skip to content

Commit 132b82d

Browse files
committed
gh-133244: Update TPen.pensize doc (turtle module)
1 parent 952ec27 commit 132b82d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/library/turtle.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,8 @@ Drawing state
10791079

10801080
:param width: a positive number
10811081

1082+
:raises TurtleGraphicsError: If *width* is less than zero.
1083+
10821084
Set the line thickness to *width* or return it. If resizemode is set to
10831085
"auto" and turtleshape is a polygon, that polygon is drawn with the same line
10841086
thickness. If no argument is given, the current pensize is returned.
@@ -1090,6 +1092,9 @@ Drawing state
10901092
1
10911093
>>> turtle.pensize(10) # from here on lines of width 10 are drawn
10921094

1095+
.. versionchanged:: next
1096+
Raise :exc:`TurtleGraphicsError` if *width* is less than zero.
1097+
10931098

10941099
.. function:: pen(pen=None, **pendict)
10951100

0 commit comments

Comments
 (0)