This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: tkinter.Canvas.coords should return a list, not a map
Type: behavior Stage: resolved
Components: Tkinter Versions: Python 3.1, Python 3.2
process
Status: closed Resolution: duplicate
Dependencies: Superseder: changed return type from tkinter.Canvas.coords
View: 6878
Assigned To: Nosy List: belopolsky
Priority: normal Keywords: patch

Created on 2010-10-21 16:44 by belopolsky, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
canvas-coords.diff belopolsky, 2010-10-21 16:44
Messages (1)
msg119316 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2010-10-21 16:44
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.
History
Date User Action Args
2022-04-11 14:57:07adminsetgithub: 54377
2010-10-21 17:30:58eric.araujosetstatus: open -> closed
resolution: duplicate
superseder: changed return type from tkinter.Canvas.coords
stage: test needed -> resolved
2010-10-21 16:44:27belopolskycreate