> "Tab-completion is now enabled by default in the interactive interpreter."
Thanks! Now I don't have to do this on every box anymore for using Python.
Thanks! Now I don't have to do this on every box anymore for using Python.
After finding bpython this is a bit underwhelming. Perhaps they should just include it by default.
import readline
import rlcompleter
readline.parse_and_bind('tab: complete') import readline
import rlcompleter
if 'libedit' in readline.__doc__:
readline.parse_and_bind("bind ^I rl_complete")
else:
readline.parse_and_bind("tab: complete")
[1] http://stackoverflow.com/a/7116997/10583