stdin on Win32
Peter Hansen
peter at engcorp.com
Mon Sep 16 22:07:14 EDT 2002
nobody wrote:
> This works on Linux, but not Win32. Win32 just gives me EOF..
>
> # echo foo|test.py
>
> where test.py is:
>
> import sys
>
> print sys.stdin.readline()
Which flavour of Win32? Win98 needs you to explicitly
invoke Python and pass the test.py name as a command line
option. Also, I believe there are problems with non-Win98
Win32 with respect to redirection and the feature you
are trying to invoke. Checking the archives for this
might give some detail.
-Peter
More information about the Python-list
mailing list