Win32 stdin redirection

Tim Harig usernet at ilthio.net
Fri Jun 12 01:25:08 CEST 2009


On 2009-06-11, Tim Harig <usernet at ilthio.net> wrote:
> On 2009-06-11, lynvie <lyndiechiou at gmail.com> 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 tmp.py and the data
>> input file is sum.dat (just a list of numbers, 1 per line). When I
>> type into my command shell "tmp.py < 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:
http://groups.google.co.uk/group/comp.lang.python/browse_frm/thread/10d3928277319bef



More information about the Python-list mailing list