Line editing doesn't work in python from terminal

When I run python in a terminal, line editing doesn't work at the python prompt.  Arrow keys echo their mapping. emacs keys likewise.

I need to do this instead of python console because I need to run the current python file with an argument.  Can't see how to do that via the console.  It's obvious in terminal: python thing.py arg.

I have gnureadline installed in the virtualenv.
1 comment
Sort of solved.  Running the python console does load the current file, though not with any arguments.  Fortunately, the one argument wasn't required when using pycharm.  line editing works in the python console.

However, when running python in the local terminal, line editing doesn't work.
0

Please sign in to leave a comment.