4 ms·
> Ruby’s REPL(irb) seems to me more advanced since it allows you to do TAB smart completion(amongst other things). You can easily have tab completion and a bun
by jessedhillon 16y ago
> Ruby’s REPL(irb) seems to me more advanced since it allows you to do TAB smart completion(amongst other things).
You can easily have tab completion and a bunch of other good stuff (like preserving history across sessions) with the Python REPL. You have to use the PYTHONSTARTUP environment variable to indicate a script that is run when the Python shell begins, and that script has to use adjust some rlcompleter and readline setttings.
It's all right here:
http://docs.python.org/library/rlcompleter.html http://docs.python.org/library/rlcompleter.html
Incidentally, this is the first result on Google for "python tab completion"