Re: read sys.stdin, then raw_input

2006-03-02 Thread Rory Campbell-Lange
That works great for me on my unixoid system. Thanks, Fredrik. On 02/03/06, Fredrik Lundh ([EMAIL PROTECTED]) wrote: > since there's only one input channel for a program (stdin), and raw_input > reads from that channel, I don't think there's a portable way to do this. > ... > # rebind sys.st

Re: read sys.stdin, then raw_input

2006-03-02 Thread Fredrik Lundh
Rory Campbell-Lange wrote: > To clarify, how can I get a normal terminal prompt for raw_input to > enable me to insert a value into variable 'sel'? > > The program wants to keep reading from the piped file, it seems. > > Rory > > On 01/03/06, Rory Campbell-Lange ([EMAIL PROTECTED]) wrote: > > I'm

Re: read sys.stdin, then raw_input

2006-03-02 Thread Rory Campbell-Lange
To clarify, how can I get a normal terminal prompt for raw_input to enable me to insert a value into variable 'sel'? The program wants to keep reading from the piped file, it seems. Rory On 01/03/06, Rory Campbell-Lange ([EMAIL PROTECTED]) wrote: > I'm stumped. I'm piping some content to a pytho

read sys.stdin, then raw_input

2006-03-02 Thread Rory Campbell-Lange
I'm stumped. I'm piping some content to a python program, but then want the python program to prompt me for an answer. It goes on reading the pipe and gives a "EOFError: EOF when reading a line". eg: #!/usr/bin/python import sys text = sys.stdin.read() sel = raw_input('Selection?