Skip to content

Is it possible to remove the feature of auto-completing parentheses for a callable in REPL? #117282

Closed as not planned
@beavailable

Description

@beavailable

Bug report

Bug description:

Sometimes it's just annoying:

  • When I type sys.getsi and press tab to complete for me, I get sys.getsizeof(, but now I forget the signature of this function, I'll type alt+shift+I to go to the beginning of the line (I'm using vi mode in bash), and type help( then type alt+shift+A to go to the end of the line, then I need to delete the annoying ( and type ) to get help.

    Another way is to first delete the annoying ( and type ), then go to the beginning and type help( to get help, but either way is so uncomfortable for me.

  • When I just want to pass a function name to another function as an argument, the ( is just redundant.

I know that it's a useful feature, but I don't think it's necessary, and considering its drawbacks, I'd rather remove this feature.
Of course it's just my opinion (but if it's removed I'd be happy) . Now I just need a way to disable it (an environment variable would be ok, I can submit a PR if needed), please consider.

CPython versions tested on:

3.11

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions