Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tkinter.Canvas.coords should return a list, not a map #54377

Closed
abalkin opened this issue Oct 21, 2010 · 1 comment
Closed

tkinter.Canvas.coords should return a list, not a map #54377

abalkin opened this issue Oct 21, 2010 · 1 comment
Labels
topic-tkinter type-bug An unexpected behavior, bug, or error

Comments

@abalkin
Copy link
Member

abalkin commented Oct 21, 2010

BPO 10168
Nosy @abalkin
Superseder
  • bpo-6878: changed return type from tkinter.Canvas.coords
  • Files
  • canvas-coords.diff
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2010-10-21.17:30:58.739>
    created_at = <Date 2010-10-21.16:44:27.737>
    labels = ['type-bug', 'expert-tkinter']
    title = 'tkinter.Canvas.coords should return a list, not a map'
    updated_at = <Date 2010-10-21.17:30:58.738>
    user = 'https://github.com/abalkin'

    bugs.python.org fields:

    activity = <Date 2010-10-21.17:30:58.738>
    actor = 'eric.araujo'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-10-21.17:30:58.739>
    closer = 'eric.araujo'
    components = ['Tkinter']
    creation = <Date 2010-10-21.16:44:27.737>
    creator = 'belopolsky'
    dependencies = []
    files = ['19324']
    hgrepos = []
    issue_num = 10168
    keywords = ['patch']
    message_count = 1.0
    messages = ['119316']
    nosy_count = 1.0
    nosy_names = ['belopolsky']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '6878'
    type = 'behavior'
    url = 'https://bugs.python.org/issue10168'
    versions = ['Python 3.1', 'Python 3.2']

    @abalkin
    Copy link
    Member Author

    abalkin commented Oct 21, 2010

    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.

    @abalkin abalkin added topic-tkinter type-bug An unexpected behavior, bug, or error labels Oct 21, 2010
    @merwok merwok closed this as completed Oct 21, 2010
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    topic-tkinter type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants