Reading twice from STDIN

Hans Mulder hansmu at xs4all.nl
Fri Dec 2 02:53:08 EST 2011


On 2/12/11 03:46:10, Dan Stromberg wrote:

> You can read piped data from sys.stdin normally.  Then if you want
> something from the user, at least on most *ix's, you would open
> /dev/tty and get user input from there.  'Not sure about OS/X.

Reading from /dev/tty works fine on OS/X.

-- HansM




More information about the Python-list mailing list