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...@ilthio.net> wrote: > On 2009-06-11, Tim Harig <user...@ilthio.net> wrote: > > > On 2009-06-11, lynvie <lyndiech...@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... -- http://mail.python.org/mailman/listinfo/python-list