[New-bugs-announce] [issue10168] tkinter.Canvas.coords should return a list, not a map

Alexander Belopolsky report at bugs.python.org
Thu Oct 21 18:44:29 CEST 2010


New submission from Alexander Belopolsky <belopolsky at users.sourceforge.net>:

Apparently a 2.x to 3.x migration artifact.  Canvas.coords() is documented as returning a list:

    def coords(self, *args):
        """Return a list of coordinates for the item given in ARGS."""

but in 3.x it returns a map object.

Attached patch fixes that.

----------
components: Tkinter
files: canvas-coords.diff
keywords: patch
messages: 119316
nosy: belopolsky
priority: normal
severity: normal
stage: unit test needed
status: open
title: tkinter.Canvas.coords should return a list, not a map
type: behavior
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file19324/canvas-coords.diff

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


More information about the New-bugs-announce mailing list