Print the Jedi version when REPL completion is used
This also makes debugging easier, because people see which completion they're actually using.
This commit is contained in:
1 parent
895db8d6ff
commit
ae8b0d5eab
1 file changed
+5
-1
@@ -15,9 +15,13 @@ Then you will be able to use Jedi completer in your Python interpreter::
|
|||||||
os.path.join().split().index os.path.join().split().insert
|
os.path.join().split().index os.path.join().split().insert
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import jedi.utils
|
import jedi.utils
|
||||||
|
from jedi import __version__ as __jedi_version__
|
||||||
|
|
||||||
|
print('REPL completion using Jedi %s' % __jedi_version__)
|
||||||
jedi.utils.setup_readline()
|
jedi.utils.setup_readline()
|
||||||
|
|
||||||
del jedi
|
del jedi
|
||||||
|
|
||||||
# Note: try not to do many things here, as it will contaminate global
|
# Note: try not to do many things here, as it will contaminate global
|
||||||
# namespace of the interpreter.
|
# namespace of the interpreter.
|
||||||
Reference in new issue
Block a user