Win32 stdin redirection

Tim Harig usernet at
Thu Jun 11 19:25:08 EDT 2009

On 2009-06-11, Tim Harig <usernet at> wrote:
> On 2009-06-11, lynvie <lyndiechiou at> wrote:
>> I have a very simple program from the first chapter of a book on
>> python 3 (I'm a novice). I called the program and the data
>> input file is sum.dat (just a list of numbers, 1 per line). When I
>> type into my command shell " < sum.dat" I get an error from
> What OS are you using?  I know that pipes cause issues when working with
> interpreters on Windows.  You must call the python interpreter directly or
> it will not be able to handle the pipe directly.  I don't remember exacly
> how the issue manifests but I remember it has bitten me before on Win32.  I
> don't currenlty have a Windows machine to test on.

More info:

More information about the Python-list mailing list