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 raises TypeError when it's supposed to raise TclError #85556

Closed
Akuli mannequin opened this issue Jul 24, 2020 · 5 comments
Closed

tkinter raises TypeError when it's supposed to raise TclError #85556

Akuli mannequin opened this issue Jul 24, 2020 · 5 comments
Labels
3.8 only security fixes 3.9 only security fixes 3.10 only security fixes topic-tkinter type-bug An unexpected behavior, bug, or error

Comments

@Akuli
Copy link
Mannequin

Akuli mannequin commented Jul 24, 2020

BPO 41384
Nosy @terryjreedy, @serhiy-storchaka, @Akuli, @miss-islington
PRs
  • bpo-41384: fix .keys()[0] in tkinter #21601
  • [3.9] bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601) #21635
  • [3.8] bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601) #21636
  • 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 2020-07-27.02:17:20.765>
    created_at = <Date 2020-07-24.14:48:31.142>
    labels = ['3.8', 'type-bug', 'expert-tkinter', '3.9', '3.10']
    title = "tkinter raises TypeError when it's supposed to raise TclError"
    updated_at = <Date 2020-07-27.02:17:20.764>
    user = 'https://github.com/Akuli'

    bugs.python.org fields:

    activity = <Date 2020-07-27.02:17:20.764>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-07-27.02:17:20.765>
    closer = 'terry.reedy'
    components = ['Tkinter']
    creation = <Date 2020-07-24.14:48:31.142>
    creator = 'Akuli'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41384
    keywords = ['patch']
    message_count = 5.0
    messages = ['374188', '374351', '374355', '374356', '374357']
    nosy_count = 5.0
    nosy_names = ['terry.reedy', 'gpolo', 'serhiy.storchaka', 'Akuli', 'miss-islington']
    pr_nums = ['21601', '21635', '21636']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue41384'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    @Akuli
    Copy link
    Mannequin Author

    Akuli mannequin commented Jul 24, 2020

    from Lib:tkinter/init.py:

    raise TclError('unknown option -'+kwargs.keys()[0])
    

    This is no longer valid in Python 3.

    @Akuli Akuli mannequin added topic-tkinter labels Jul 24, 2020
    @wyz23x2 wyz23x2 mannequin added 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes type-bug An unexpected behavior, bug, or error labels Jul 25, 2020
    @terryjreedy
    Copy link
    Member

    New changeset f1d40f9 by Akuli in branch 'master':
    bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)
    f1d40f9

    @terryjreedy
    Copy link
    Member

    New changeset 8b05275 by Miss Islington (bot) in branch '3.9':
    bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)
    8b05275

    @terryjreedy
    Copy link
    Member

    New changeset 104aded by Miss Islington (bot) in branch '3.8':
    bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)
    104aded

    @terryjreedy
    Copy link
    Member

    Thank you for reporting this. In the future, you can suggest a fix on the issue, without a PR.

    @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
    3.8 only security fixes 3.9 only security fixes 3.10 only security fixes topic-tkinter type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant