Poll'able Queue objects.

Grant Edwards grante at visi.com
Sun Mar 11 23:50:12 EST 2001


In article <cuRq6.240807$o91.31035696 at typhoon.nyroc.rr.com>, Dan Maas wrote:

>> As this didn't seem to exist i have coded a selectable Queue object based
>> on pipes (which should thus work under unix and win32).  I have included
>> the code below.  If you go to the following URL :
>
>I hate to say it, but this code won't work on Win32 since you can't select()
>or WaitForMultipleObjects() on anonymous pipes (thanks, MS!).

The mind wobbles.  One of the things that Unix got right is that you can
select() (or poll()) on pipes, sockets, serial ports (any properly written
character device that's properly written), or, in degenerate-case sort of
way, "regular" files.  The fact that MS could take such a giant step
backwards demonstrates either a monumental lack of knowledge about OS's or a
monumental amount of conceit.  Probably a combination of both.

It's really sad and shocking.

-- 
Grant Edwards                   grante             Yow!  Do you think the
                                  at               "Monkees" should get gas on
                               visi.com            odd or even days?



More information about the Python-list mailing list