cool-easter-32542
01/10/2024, 6:17 PMpants repl ....
Describe the solution you'd like
Matching behavior of python started directly / in interactive -i mode.
>>> 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/pantscool-easter-32542
01/17/2024, 1:35 AM