En Wed, 03 Sep 2008 07:16:12 -0300, Tim Golden <[EMAIL PROTECTED]> escribi�:
Gabriel Genellina wrote:
En Wed, 03 Sep 2008 06:16:03 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]> escribi�:

When I try to run the same thing on windows I get
IOError: [Error 9] Bad file descriptor

How can I make this more windows friendly?
Explicitely invoking the interpreter worked for me. That is, these two commands worked fine:
 type test.txt | python count.py
python count.py < test.txt
 But I cannot explain *why* it doesn't work the other way.

Known bug in NT-based file association. I'll try to find an online reference, but that's basically
what it comes to. I think you can faff-about with
batch files to achieve the effect, but I can't
quite remember.

http://support.microsoft.com/kb/321788

Uhmm... That KB article says the bug was corrected in Windows XP SP1, but I have SP3 installed and the test failed. Updating the registry by hand solved the problem. A regression maybe?

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to