mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-18 14:31:25 +08:00
Show how to fallback to regular readline completion
This commit is contained in:
1 parent
c60fd21805
commit
6f9da26593
1 file changed
+10
@@ -22,6 +22,16 @@ def setup_readline():
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
print('Install Jedi! No autocompletion otherwise.')
|
print('Install Jedi! No autocompletion otherwise.')
|
||||||
|
|
||||||
|
Alternately, you can fall back to regular readline completion with
|
||||||
|
something like::
|
||||||
|
|
||||||
|
try:
|
||||||
|
from jedi.utils import setup_readline
|
||||||
|
setup_readline()
|
||||||
|
except ImportError:
|
||||||
|
import readline, rlcompleter
|
||||||
|
readline.parse_and_bind("tab: complete")
|
||||||
|
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
import readline
|
import readline
|
||||||
|
|||||||
Reference in new issue
Block a user