mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
Merge pull request #406 from davidhalter/repl_info
Print the Jedi version when REPL completion is used
This commit is contained in:
@@ -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