[python-win32] how to get select behavior for non-socket objects

Brian Martin thebrianmartin at gmail.com
Fri Jul 27 20:09:59 CEST 2007


Question.. Is 'Python Programming on Win32' the only resource we have so far
or are their other more recent books out?
I'm looking at this win32event.WaitForMultipleObjects call and I'm kind of
baffled at where to start. I've got all these native python handles to
serial ports and sockets which I use in a select call in Unix-land. To go to
the win32event approach I am at a loss. How do I get from these python
handles  to a PyHandle fit for the win32 api?  Anyone know of any other
resources or examples I could look at?




On 7/24/07, Mark Hammond <mhammond at skippinet.com.au> wrote:
>
>  If you have a Windows handle (such as a handle to the serial port, a
> handle to a file, or a socket), you can generally use
> win32event.WaitForMultipleObjects()
>
> Mark
>
> -----Original Message-----
> *From:* python-win32-bounces at python.org [mailto:
> python-win32-bounces at python.org]*On Behalf Of *Brian Martin
> *Sent:* Tuesday, 24 July 2007 12:14 PM
> *To:* python-win32 at python.org
> *Subject:* [python-win32] how to get select behavior for non-socket
> objects
>
> Hello, I understand that the select module will only work with sockets
> under windows. Is there a built-in python module for win32 that provides
> some kind of multiplexing
> ability for something like a serial port (via pyserial).
>
> thanks,
> brian
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20070727/bc68f8ba/attachment.html 


More information about the Python-win32 mailing list