1
0
forked from VimPlug/jedi

Merge branch 'dev' into repl

This commit is contained in:
David Halter
2013-08-05 15:20:10 +04:30
9 changed files with 41 additions and 11 deletions

View File

@@ -13,11 +13,14 @@ def setup_readline():
Install Jedi completer to :mod:`readline`.
This function setups :mod:`readline` to use Jedi in Python interactive
shell. If you want to use custom ``PYTHONSTARTUP`` file, you can call
this function like this:
shell. If you want to use a custom ``PYTHONSTARTUP`` file (typically
``$HOME/.pythonrc.py``), you can add this piece of code:
>>> from jedi.utils import setup_readline
>>> setup_readline()
>>> try:
>>> from jedi.utils import setup_readline
>>> setup_readline()
>>> except ImportError:
>>> print('Install Jedi with pip! No autocompletion otherwise.')
"""
try: