From ae8b0d5eab43a349f33d3eb907565cb2931e15cd Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Tue, 6 May 2014 08:17:09 +0200 Subject: [PATCH] Print the Jedi version when REPL completion is used This also makes debugging easier, because people see which completion they're actually using. --- jedi/api/replstartup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jedi/api/replstartup.py b/jedi/api/replstartup.py index c535c5e2..5bfcc8ce 100644 --- a/jedi/api/replstartup.py +++ b/jedi/api/replstartup.py @@ -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 """ - import jedi.utils +from jedi import __version__ as __jedi_version__ + +print('REPL completion using Jedi %s' % __jedi_version__) jedi.utils.setup_readline() + del jedi + # Note: try not to do many things here, as it will contaminate global # namespace of the interpreter.