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

2007-07-24 Thread Waldemar Osuch
On 7/23/07, Brian Martin <[EMAIL PROTECTED]> wrote: > 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,

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

2007-07-24 Thread Mark Hammond
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Brian Martin Sent: Tuesday, 24 July 2007

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

2007-07-24 Thread Tim Roberts
Brian Martin wrote: > 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). There's just no good way to implement such

Re: [python-win32] Backing up and clearing event logs

2007-07-24 Thread Tim Golden
Mårten Hedman wrote: > Just a comment: My current, temporary, Python environment is very basic, > only Python 2.5.1, pywin32 v. 210 and wmi.py v. 1.3 on a WinXP SP2 > laptop. I have not run makepy on any type libraries. Should I do this, > and in that case on which library? Most of my work relat

Re: [python-win32] Backing up and clearing event logs

2007-07-24 Thread Mårten Hedman
Tim Golden wrote: > Roger Upole wrote: >> Tim Golden wrote: >>> PS As a footnote, I have this very frustrating experience where >>> *some* people -- and it looks to me as though you're one of >>> them -- get the property passthrough stuff for free (ie it would >>> happen even without my module) whe

Re: [python-win32] Backing up and clearing event logs

2007-07-24 Thread Mårten Hedman
Tim Golden wrote: > Mårten Hedman wrote: >> Thank you for your quick answer. Unfortunately I get the same error >> message. >> >> BTW, is WMI case sensitive regarding method names? If I run your example >> with 'print log.BackupEventLog', I get the error: >> >> >> >>> c=wmi.WMI() >> >>> log=c.