stdin on Win32

Peter Hansen peter at
Mon Sep 16 22:07:14 EDT 2002

nobody wrote:
> This works on Linux, but not Win32.  Win32 just gives me EOF..
> # echo foo|
> where is:
> import sys
> print sys.stdin.readline()

Which flavour of Win32?  Win98 needs you to explicitly
invoke Python and pass the 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.


More information about the Python-list mailing list