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

2007-07-23 Thread Brian Martin
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 ___ Python-w

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

2007-07-23 Thread Tim Golden
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) where I never do. I've never

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

2007-07-23 Thread Roger Upole
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) where I never do. I've never > managed to track this

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

2007-07-23 Thread Tim Golden
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.Win32_NTEventLogFile > >>>

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

2007-07-23 Thread Mårten Hedman
Tim Golden wrote: > Mårten Hedman wrote: >> Hello, >> >> I am trying to write a script for backing up and clearing event logs on >> our Windows 2003 servers, using Python 2.5 and Tim Golden's WMI module. >> While testing with the Application log on a local Windows XP machine I >> seem to get stuck