> If it weren't for the documentation... > > "If the prompt argument is present, it is written to *standard output* > without a trailing newline." > > -- > mvh Björn
I have reported this issue to the python-dev mailing list, and Guido agrees that this is a bug in Python. It turns out that the key is that my site does not have GNU readline installed, so Python falls back to its own implementation of readline. Using GNU readline, raw_input will write its prompt to stdout. Python's own implementation of readline sends the output to stderr. As Bjorn states, the documentation for raw_input says it writes its prompt to stdout. A bug issue has been opened in the Python Trac system for this. -- http://mail.python.org/mailman/listinfo/python-list