[New-bugs-announce] [issue21868] Tbuffer in turtle allows negative size
Lita Cho
report at bugs.python.org
Wed Jun 25 09:10:25 CEST 2014
New submission from Lita Cho:
Currently, you can set the undobuffer size to negative numbers. Aka, the Tbuffer can be set to negative.
s = turtle.Screen()
raw = turtle.RawTurtle(s)
raw.setundobuffer(-10)
raw.undobuffer.bufsize == -10 <-- returns True
This should not be possible. Tbuffer should not be allowed to have negative inputs. If the value is less than 0, it should just default to 0 or None. Otherwise, when you call undo, turtle just crashes.
----------
messages: 221530
nosy: Lita.Cho
priority: normal
severity: normal
status: open
title: Tbuffer in turtle allows negative size
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21868>
_______________________________________
More information about the New-bugs-announce
mailing list