question on select
Gonçalo Rodrigues
op73418 at mail.telepac.pt
Wed Nov 6 21:46:08 EST 2002
On 7 Nov 2002 01:56:39 GMT, Gerhard Häring
<gerhard.haering at opus-gmbh.net> wrote:
>In article <lohjsuc5n97g8guh7jht4e8b4t909rdgeq at 4ax.com>, Gonçalo Rodrigues wrote:
>> Hi,
>>
>> I know that select does not work on file objects in the Windows
>> platform. But does select work on sys.stdin? On the Windows platform,
>> that is.
>
>Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32
>Type "help", "copyright", "credits" or "license" for more information.
>>>> import sys
>>>> type(sys.stdin)
><type 'file'>
>>>> sys.stdin.fileno()
>0
>>>>
>
>Does that answer your question? ;-)
>
>stdin/stdout/stderr *are* file objects.
It does :-) When I read the docs I somehow got the impression that
although stdin were file objects they were still
good-for-selecting-on-windows. Just checking my impression was wrong.
Thanks, with my best regards,
G. Rodrigues
More information about the Python-list
mailing list