raw_input(), STRANGE behaviour

sevenbark sevenbark at gmail.com
Mon Jan 28 00:12:47 EST 2008


On Sat, 26 Jan 2008 04:23:36 -0800 (PST), Dox33
<Rens.Duijsens at gmail.com> wrote:

<snip>

>WHERE IS THE SECOND LINE?
>It is in the file stderr_catch.txt!!!
>
>**** See the problem?
>Please Tell me? Why is the prompt produced by raw_input() printed to
>the error channel? It should be stdout, just as the print statement
>does.

Isn't this the norm in Unix shells also?  In bash the "read" command
prints the prompt on stderr and the "select" command prints both the
menu and prompt on stderr.

sb



More information about the Python-list mailing list