[Python-ideas] Open parenthesis in REPL completion

Steven D'Aprano steve at pearwood.info
Mon May 6 19:38:29 EDT 2019


On Fri, Apr 26, 2019 at 11:14:32AM +1200, Greg Ewing wrote:
> Steven D'Aprano wrote:
> >But having the opening bracket auto-added is a small satisfaction, and 
> >if you're using the REPL for actual calculations and not just help(), 
> >the benefit probably outweighs the annoyance
> 
> The completer could detect the help( as well and leave out
> the opening paren in that case.

It could, but is that special case special enough to break the rules?

"Why doesn't tab completion work correctly in help? I'm trying to call 
help(builder()) but tab completion doesn't add the opening parenthesis 
to builder..."


-- 
Steven


More information about the Python-ideas mailing list