Skip to content

Instantly share code, notes, and snippets.

Created December 18, 2012 03:11
Show Gist options
  • Save anonymous/4324689 to your computer and use it in GitHub Desktop.
Save anonymous/4324689 to your computer and use it in GitHub Desktop.
PYTHON: Enable tab completion in standard python shell :)
# enable syntax completion
try:
import readline
except ImportError:
print "Module readline not available."
else:
import rlcompleter
readline.parse_and_bind("tab: complete")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment