Win32 stdin redirection
lynvie
lyndiechiou at gmail.com
Fri Jun 12 02:15:04 EDT 2009
Thanks for the additional info! I had no idea this was an old Windows
problem... I'm using Windows XP and I'm up-to-date on all my patches.
The good news is I can invoke the script correctly now, thanks to your
help!
On Jun 11, 4:25 pm, Tim Harig <user... at ilthio.net> wrote:
> On 2009-06-11, Tim Harig <user... at ilthio.net> wrote:
>
> > On 2009-06-11, lynvie <lyndiech... 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/1...
More information about the Python-list
mailing list