マニュアルによると、標準出力にraw_input書き込みます。私はこの小さなプログラムを持っています ( test_raw_input.py):
# Test if rawinput writes to stdout or stderr
raw_input('This is my prompt > ')
そして、これをどのように実行しても:
$ python test_raw_input.py > xxx
また
$ python test_raw_input.py 2> xxx
プロンプトは常に で終わりますxxx。なぜこうなった?