Skip to content

Instantly share code, notes, and snippets.

@acdha
Created March 19, 2009 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acdha/82102 to your computer and use it in GitHub Desktop.
Save acdha/82102 to your computer and use it in GitHub Desktop.
How to get tab-completion in Python on the default OS X install
try:
import readline
except ImportError:
print "Module readline not available."
else:
import rlcompleter
readline.parse_and_bind("bind ^I rl_complete")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment