Re: [python-win32] catching the "close" event

2009-02-12 Thread Mark Hammond
On 13/02/2009 5:59 AM, Pollack, Steven K wrote: I am trying to write a python based glue to orchestrate interaction between Access, Excel and Outlook. I understand events reasonably well, can DispatchWithEvents an instance of excel and catch worksheet and file save related events. but can’t figu

Re: [python-win32] mapi - writing to PR_BODY

2009-02-12 Thread Mark Hammond
On 13/02/2009 2:35 AM, Christian K. wrote: Mark Hammond schrieb: On 8/02/2009 7:06 PM, Christian K. wrote: write should return the number of bytes written but it returns None here. It appears Roger fixed this on 2007/08/07 and the fix was in builds 211 and 212. I suppose I am using a recent

[python-win32] catching the "close" event

2009-02-12 Thread Pollack, Steven K
I am trying to write a python based glue to orchestrate interaction between Access, Excel and Outlook. I understand events reasonably well, can DispatchWithEvents an instance of excel and catch worksheet and file save related events. but can't figure out if there is an event I can catch associa

Re: [python-win32] mapi - writing to PR_BODY

2009-02-12 Thread Christian K.
Mark Hammond schrieb: On 8/02/2009 7:06 PM, Christian K. wrote: write should return the number of bytes written but it returns None here. It appears Roger fixed this on 2007/08/07 and the fix was in builds 211 and 212. I suppose I am using a recent build - where can I find the version info

Re: [python-win32] Slow convert collection to list (search a fastway)

2009-02-12 Thread Michel Claveau
Re ! ... win32com's semantics ... wrt ... iterators etc ... pywin32-213 OK. I will modifie (today) my (architecture) code. With definition (& usage) of class with "lazy treatment". The time will be consumed only for need (I hope my english translation will have been understandable). Than

Re: [python-win32] Slow convert collection to list (search a fastway)

2009-02-12 Thread Mark Hammond
On 12/02/2009 6:58 PM, Michel Claveau wrote: Re! You think 700 microseconds for a COM transaction is slow? Perhaps it is your expectations that need adjusting. When I get an array of data (for example, numbers), the (same) list conversion (len=1000) take 0.07 s But with array of object, it is