[New-bugs-announce] [issue3940] turtle.py - minor bugfixes

Gregor Lingl report at bugs.python.org
Tue Sep 23 02:16:17 CEST 2008


New submission from Gregor Lingl <gregorlingl at users.sourceforge.net>:

Thorough testing revealesd the following bugs in turtle.py (Python 2.6):

1) Around lines 359 and 379: There's a name conflict with a methodname
of the parentclass Frame: _root. The bugfix consists in renaming this
attribute, which occurs only twice

2) Around line 732: Turtles with image-shapes do not recognize user
coordinates. This is fixed in  TurtleScreenBase method _drawimage by
introducing the corresponding scaling factors

3) Around line 3570: Calling the __init__ - Method of the Screen-class
(which uses the Borg idiom) destroys graphics and Turtles on the Screen.
This is an undesired behaviour. The fix brings the behaviour of Screen
in accordance with the Python 3.0 version.

4) Around line 3612: Screen.setup() needs a final update() call in order
to ensure, that immediately following calls of window_width() or
window_height() return correct values.

Moreover there is a correction of the version number and date

Bugfixes are attached in turtle.py.diff

Regards,
Gregor

----------
components: Library (Lib)
files: turtle.py.diff
keywords: patch
messages: 73607
nosy: gregorlingl
severity: normal
status: open
title: turtle.py - minor bugfixes
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file11565/turtle.py.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3940>
_______________________________________


More information about the New-bugs-announce mailing list