<#20389 Python repl should support tab complete> I...
# github-notifications
c
#20389 Python repl should support tab complete Issue created by JettJones Is your feature request related to a problem? Please describe. Current versions of python 3.x support tab complete when run directly (https://docs.python.org/3/tutorial/interactive.html), it would be nice if this was also available in
pants repl ...
. Describe the solution you'd like Matching behavior of python started directly / in interactive
-i
mode.
Copy code
>>> x = []
>>> x.  # then tab generates:
x.append(   x.clear(    x.copy(     x.count(    x.extend(   x.index(    x.insert(   x.pop(      x.remove(   x.reverse(  x.sort(
>>> import sys
>>> sys.  # then tab generates:
sys.abiflags                              sys.getallocatedblocks(                   sys.path_hooks
sys.addaudithook(                         sys.getdefaultencoding(                   sys.path_importer_cache
sys.api_version                           sys.getdlopenflags(                       sys.platform
sys.argv                                  sys.getfilesystemencodeerrors(            sys.platlibdir
...
Describe alternatives you've considered Running with --shell=ipython activates the autocomplete in ipython, but it's a slightly different interface, so one more thing to learn. Additional context pantsbuild/pants