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

(readline) Autofill the closing parenthesis during auto-completion for functions which accept no arguments at all #83495

Closed
opensource-assist mannequin opened this issue Jan 12, 2020 · 2 comments
Labels
3.10 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@opensource-assist
Copy link
Mannequin

opensource-assist mannequin commented Jan 12, 2020

BPO 39314
Nosy @corona10, @remilapeyre, @opensource-assist
PRs
  • bpo-39314: Closes parenthesis when autocompleting for functions that take no arguments #20562
  • 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-06-30.13:48:54.481>
    created_at = <Date 2020-01-12.16:31:37.901>
    labels = ['interpreter-core', 'type-feature', '3.10']
    title = '(readline) Autofill the closing parenthesis during auto-completion for functions which accept no arguments at all'
    updated_at = <Date 2020-06-30.13:48:54.481>
    user = 'https://github.com/opensource-assist'

    bugs.python.org fields:

    activity = <Date 2020-06-30.13:48:54.481>
    actor = 'corona10'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-06-30.13:48:54.481>
    closer = 'corona10'
    components = ['Interpreter Core']
    creation = <Date 2020-01-12.16:31:37.901>
    creator = 'opensource-assist'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39314
    keywords = ['patch']
    message_count = 2.0
    messages = ['359855', '372692']
    nosy_count = 3.0
    nosy_names = ['corona10', 'remi.lapeyre', 'opensource-assist']
    pr_nums = ['20562']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue39314'
    versions = ['Python 3.10']

    @opensource-assist
    Copy link
    Mannequin Author

    opensource-assist mannequin commented Jan 12, 2020

    If Python is compiled with the GNU readline headers, it will provide autocompletion for Python functions and etc.

    In the Python interpreter environment, if a function is typed partially, Python will fill in the rest if a tab character is typed.

    If a function accepts no arguments, Python still doesn't fill in the last closing paraenthesis during autocompletion, in the hope that the user will provide arguments, but in such a case it's pointless.

    @opensource-assist opensource-assist mannequin added 3.9 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Jan 12, 2020
    @opensource-assist opensource-assist mannequin changed the title Autofill the closing paraenthesis during auto-completion for functions which accept no arguments Autofill the closing paraenthesis during auto-completion for functions which accept no arguments at all Jan 12, 2020
    @opensource-assist opensource-assist mannequin changed the title Autofill the closing paraenthesis during auto-completion for functions which accept no arguments Autofill the closing paraenthesis during auto-completion for functions which accept no arguments at all Jan 12, 2020
    @opensource-assist opensource-assist mannequin removed 3.9 only security fixes labels Jan 14, 2020
    @opensource-assist opensource-assist mannequin changed the title Autofill the closing paraenthesis during auto-completion for functions which accept no arguments at all (readline) Autofill the closing parenthesis during auto-completion for functions which accept no arguments at all Jan 31, 2020
    @opensource-assist opensource-assist mannequin changed the title Autofill the closing paraenthesis during auto-completion for functions which accept no arguments at all (readline) Autofill the closing parenthesis during auto-completion for functions which accept no arguments at all Jan 31, 2020
    @orsenthil orsenthil added 3.10 only security fixes labels Jun 3, 2020
    @corona10
    Copy link
    Member

    New changeset bd4a3f2 by Rémi Lapeyre in branch 'master':
    bpo-39314: Closes parenthesis when autocompleting for functions that take no arguments (GH-20562)
    bd4a3f2

    @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 interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants