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
+2 -1
View File
@@ -22,12 +22,13 @@ def setup_readline():
except ImportError: except ImportError:
# Fallback to the stdlib readline completer if it is installed. # Fallback to the stdlib readline completer if it is installed.
# Taken from http://docs.python.org/2/library/rlcompleter.html # Taken from http://docs.python.org/2/library/rlcompleter.html
print("Jedi is not installed, falling back to readline")
try: try:
import readline import readline
import rlcompleter import rlcompleter
readline.parse_and_bind("tab: complete") readline.parse_and_bind("tab: complete")
except ImportError: 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. This will fallback to the readline completer if Jedi is not installed.
The readline completer will only complete names in the global namespace, The readline completer will only complete names in the global namespace,