print python user input
petobens opened this issue · 3 comments
petobens commented
Consider the following python file:
user_input = input('Enter some word: ')
print(user_input)
Open Gvim
, and in the directory of that file run :VimShell -popup
. Once the vimshell buffer opens run python bar.py
. You will see, as in the GIF, that vimshell accepts the user input (foo
) but when I press enter it returns (instead of printing foo
). The expected behaviour is the one seen in the second GIF where I run the python file from the cmd prompt:
ujihisa commented
This has 2 completely independent issues.
- You are using python wrong.
input
is to accept user input and evaluate it.foo
variable doesn't exist, so it fails - Your vimshell for some reason doesn't show any STDERR outputs. This seems to be a bug or misconfiguration
Shougo commented
Unfortunatelly, in Windows, user input featurer is not supported.
Windows does not have PTY.