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

IDLE: Add match and case to completions #89658

Closed
JulienPalard opened this issue Oct 16, 2021 · 5 comments
Closed

IDLE: Add match and case to completions #89658

JulienPalard opened this issue Oct 16, 2021 · 5 comments
Assignees
Labels
3.10 only security fixes 3.11 only security fixes topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@JulienPalard
Copy link
Member

BPO 45495
Nosy @terryjreedy, @JulienPalard, @miss-islington
PRs
  • bpo-45495: Add 'case' and 'match' to IDLE completions list #29000
  • [3.10] bpo-45495: Add 'case' and 'match' to IDLE completions list. (GH-29000) #29001
  • 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 = 'https://github.com/terryjreedy'
    closed_at = <Date 2021-10-16.23:19:42.300>
    created_at = <Date 2021-10-16.14:24:45.526>
    labels = ['expert-IDLE', 'type-bug', '3.10', '3.11']
    title = 'IDLE: Add match and case to completions'
    updated_at = <Date 2021-10-16.23:19:42.299>
    user = 'https://github.com/JulienPalard'

    bugs.python.org fields:

    activity = <Date 2021-10-16.23:19:42.299>
    actor = 'terry.reedy'
    assignee = 'terry.reedy'
    closed = True
    closed_date = <Date 2021-10-16.23:19:42.300>
    closer = 'terry.reedy'
    components = ['IDLE']
    creation = <Date 2021-10-16.14:24:45.526>
    creator = 'mdk'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45495
    keywords = ['patch']
    message_count = 5.0
    messages = ['404083', '404109', '404118', '404120', '404121']
    nosy_count = 3.0
    nosy_names = ['terry.reedy', 'mdk', 'miss-islington']
    pr_nums = ['29000', '29001']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue45495'
    versions = ['Python 3.10', 'Python 3.11']

    @JulienPalard
    Copy link
    Member Author

    In IDLE, when hitting Ctrl-space on matc or cas, there's no completion to match and `case.

    References: https://mail.python.org/archives/list/docs@python.org/thread/DRZIHLQU25JUD7IQKCOIIKI4ADB746MA/

    @JulienPalard JulienPalard added 3.10 only security fixes 3.11 only security fixes labels Oct 16, 2021
    @JulienPalard JulienPalard added topic-IDLE 3.10 only security fixes 3.11 only security fixes labels Oct 16, 2021
    @terryjreedy terryjreedy changed the title IDLE: Add match and case IDLE: Add match and case to completions Oct 16, 2021
    @terryjreedy terryjreedy changed the title IDLE: Add match and case IDLE: Add match and case to completions Oct 16, 2021
    @terryjreedy
    Copy link
    Member

    That is because they are not keywords in keyword.kwlist. But we can add them to the completion list. Thanks for transferring the report.

    @terryjreedy terryjreedy added type-bug An unexpected behavior, bug, or error labels Oct 16, 2021
    @terryjreedy
    Copy link
    Member

    New changeset 42ac06d by Terry Jan Reedy in branch 'main':
    bpo-45495: Add 'case' and 'match' to IDLE completions list. (GH-29000)
    42ac06d

    @miss-islington
    Copy link
    Contributor

    New changeset a294703 by Miss Islington (bot) in branch '3.10':
    [3.10] bpo-45495: Add 'case' and 'match' to IDLE completions list. (GH-29000) (GH-29001)
    a294703

    @terryjreedy
    Copy link
    Member

    I emailed the OP reporting the fix, which will be in the next releases of 3.10 and 3.11.

    @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.10 only security fixes 3.11 only security fixes topic-IDLE type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants