Skip to content

Return objects in Tkinter #36111

Closed
Closed

Description

@loewis
mannequin
BPO 518625
Nosy @gvanrossum, @loewis, @jackjansen
Files
  • tkinter.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 2003-05-19.13:29:32.000>
    created_at = <Date 2002-02-17.00:36:19.000>
    labels = ['expert-tkinter']
    title = 'Return objects in Tkinter'
    updated_at = <Date 2003-05-19.13:29:32.000>
    user = 'https://github.com/loewis'

    bugs.python.org fields:

    activity = <Date 2003-05-19.13:29:32.000>
    actor = 'jackjansen'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Tkinter']
    creation = <Date 2002-02-17.00:36:19.000>
    creator = 'loewis'
    dependencies = []
    files = ['3991']
    hgrepos = []
    issue_num = 518625
    keywords = ['patch']
    message_count = 6.0
    messages = ['39006', '39007', '39008', '39009', '39010', '39011']
    nosy_count = 3.0
    nosy_names = ['gvanrossum', 'loewis', 'jackjansen']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue518625'
    versions = []

    Activity

    1. loewis commented on Feb 17, 2002

      loewismannequin
      MannequinAuthor

      This patch uses the Tcl object API to convert return
      values to Python objects. For boolean, bytearray,
      double, int, list, and string objects, the equivalent
      Python objects are constructed (Unicode for Tcl
      string). For untyped objects, strings are returned. For
      all other objects, a Python wrapper object is returned
      which supports a tp_str conversion.

    2. gvanrossum commented on Nov 22, 2002

      @gvanrossum
      Member

      Logged In: YES
      user_id=6380

      Looks OK in theory.

    3. loewis commented on Nov 22, 2002

      loewismannequin
      MannequinAuthor

      Logged In: YES
      user_id=21627

      I was originally asked to put this on SF for review because
      the potential backwards incompatibility in return types.
      IDLE seems to work fine with this change, so I expect
      incompatibility to come up rarely.

      Can I commit this as-is, with the suggestion that
      applications that break with this can do

      import Tkinter
      Tkinter.want_objects = 0
    4. gvanrossum commented on Nov 22, 2002

      @gvanrossum
      Member

      Logged In: YES
      user_id=6380

      I can't answer that question, since I don't know what's out
      in the field. If you don't get response from python-dev,
      let's try this and see how it fares during the alpha tests.

    5. loewis commented on Nov 26, 2002

      loewismannequin
      MannequinAuthor

      Logged In: YES
      user_id=21627

      Since there were no further comments, committed as

      Tkinter.py 1.166
      NEWS 1.543
      _tkinter.c 1.131

    6. jackjansen commented on May 19, 2003

      @jackjansen
      Member

      Logged In: YES
      user_id=45365

      According to some of the Tcl/Tk folks there is a problem with this patch, in
      that Tcl objects really *are* strings, and any typing is purely an
      implementation speedup shortcut. This showed up when Tkinter got a
      floating point value for tcl_version on MacOSX. Details are in bug report
      bpo-729317.

      I'm adding this comment purely to make sure this bit of knowledge doesn't
      get lost.

    7. transferred this issue fromon Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions