Add some print statements to the .pythonrc.py example

This commit is contained in:
Aaron Meurer
2013-08-10 10:34:30 -06:00
parent 1ac6d779a1
commit 754835bec5

View File

@@ -22,12 +22,13 @@ def setup_readline():
except ImportError:
# Fallback to the stdlib readline completer if it is installed.
# Taken from http://docs.python.org/2/library/rlcompleter.html
print("Jedi is not installed, falling back to readline")
try:
import readline
import rlcompleter
readline.parse_and_bind("tab: complete")
except ImportError:
pass
print("Readline is not installed either. No tab completion is enabled.")
This will fallback to the readline completer if Jedi is not installed.
The readline completer will only complete names in the global namespace,