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

Incorrect error message for unget_wch(bytes_object) #81876

Closed
asottile mannequin opened this issue Jul 28, 2019 · 4 comments
Closed

Incorrect error message for unget_wch(bytes_object) #81876

asottile mannequin opened this issue Jul 28, 2019 · 4 comments
Labels
3.7 (EOL) end of life 3.8 (EOL) end of life 3.9 only security fixes extension-modules C modules in the Modules dir

Comments

@asottile
Copy link
Mannequin

asottile mannequin commented Jul 28, 2019

BPO 37695
Nosy @serhiy-storchaka, @asottile, @miss-islington
PRs
  • bpo-37695: Correct unget_wch error message #14986
  • [3.7] bpo-37695: Correct unget_wch error message. (GH-14986) #15053
  • [3.8] bpo-37695: Correct unget_wch error message. (GH-14986) #15061
  • 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-03-16.17:48:16.724>
    created_at = <Date 2019-07-28.03:14:58.555>
    labels = ['extension-modules', '3.7', '3.8', '3.9']
    title = 'Incorrect error message for `unget_wch(bytes_object)`'
    updated_at = <Date 2020-03-16.17:48:16.723>
    user = 'https://github.com/asottile'

    bugs.python.org fields:

    activity = <Date 2020-03-16.17:48:16.723>
    actor = 'Anthony Sottile'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-03-16.17:48:16.724>
    closer = 'Anthony Sottile'
    components = ['Extension Modules']
    creation = <Date 2019-07-28.03:14:58.555>
    creator = 'Anthony Sottile'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37695
    keywords = ['patch']
    message_count = 4.0
    messages = ['348570', '348800', '348825', '348826']
    nosy_count = 3.0
    nosy_names = ['serhiy.storchaka', 'Anthony Sottile', 'miss-islington']
    pr_nums = ['14986', '15053', '15061']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue37695'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    @asottile
    Copy link
    Mannequin Author

    asottile mannequin commented Jul 28, 2019

    For example:

        curses.unget_wch(b'x')
    TypeError: expect bytes or str of length 1, or int, got bytes

    @asottile asottile mannequin added 3.7 (EOL) end of life 3.8 (EOL) end of life 3.9 only security fixes extension-modules C modules in the Modules dir labels Jul 28, 2019
    @serhiy-storchaka
    Copy link
    Member

    New changeset c9345e3 by Serhiy Storchaka (Anthony Sottile) in branch 'master':
    bpo-37695: Correct unget_wch error message. (GH-14986)
    c9345e3

    @miss-islington
    Copy link
    Contributor

    New changeset 35d9c37 by Miss Islington (bot) in branch '3.7':
    bpo-37695: Correct unget_wch error message. (GH-14986)
    35d9c37

    @miss-islington
    Copy link
    Contributor

    New changeset 462f070 by Miss Islington (bot) in branch '3.8':
    bpo-37695: Correct unget_wch error message. (GH-14986)
    462f070

    @asottile asottile mannequin closed this as completed Mar 16, 2020
    @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.7 (EOL) end of life 3.8 (EOL) end of life 3.9 only security fixes extension-modules C modules in the Modules dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants