[Python-Dev] Incorrect documentation of the raw_input built-in function

"Martin v. Löwis" martin at v.loewis.de
Mon Jan 28 22:44:38 CET 2008


> While I couldn't locate such a document, it makes sense when you 
> consider that if such a process is part of a pipeline you really don't 
> want the prompts being handled as input by the downstream processes.
> 
> That's why mv and similar utilities prompt on standard error.

No, that doesn't really make sense. If you are in the middle of a pipe,
what good does it do to write the prompt to stderr, yet read the user
input from stdin?

If you really care about processes that run in a pipe, interact
with /dev/tty.

Regards,
Martin



More information about the Python-Dev mailing list