tab completion in Python interpreter
Enable tab completion in a Python interpreter by adding this to the ~/.pythonrc.py file:
OS X:
import rlcompleter
import readline
readline.parse_and_bind ("bind ^I rl_complete")
Linux:
import readline
import rlcompleter
readline.parse_and_bind("tab: complete")
Stackoverflow: http://stackoverflow.com/a/987402
Written by Manas Singh
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#