Python Error from Apress book

Gabriel Genellina gagsl-py2 at
Thu Jul 9 02:14:18 EDT 2009

En Wed, 08 Jul 2009 06:35:54 -0300, Dave Angel <davea at> escribió:
> Gabriel Genellina wrote:
>> Jul 2009 09:55:13 -0300, Dave Angel <davea at> escribió:
>>> Gabriel Genellina wrote:
>>>> En Mon, 06 Jul 2009 19:56:40 -0300, matt0177 <matt0177 at>  
>>>> escribió:
>>>>> When I try to run the command as outlined in
>>>>> the book " < test_input.txt > test_output.html i  
>>>>> get the
>>>>> following error every time.
>>>>> IOError: [Errno 9] Bad file descriptor
>> I think the error depends on the specific OS version/service pack. But  
>> at least on XP this appears to fix it:
> Thanks for the link.  Looking at that one, it indicates that Windows  
> 2000 fixed it in SP4, and XP fixed it in Sp1.  But I'm already running  
> XP SP3, so I wonder if it's something new.

I'm using XP SP3 too. Before applying the registry fix, stdout and stderr  
were working fine, but not stdin. After making the registry change, stdin  
works too.
I didn't notice the issue with stdin until now (I don't use stdin very  

Gabriel Genellina

More information about the Python-list mailing list