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

2009-02-11 Thread Tim Roberts
You wrote: > >Hi! > >I get a collection of (COM) objects: >tobj = oie.prepartableau(#it's a JScript array of objects, returned >by a JScript function via COM >I convert (translate? transtype?) this collection to LIST: >lobj = list(tobj) >But it's (very) slow(*). I tried [i for i in to

[python-win32] Slow convert collection to list (search a fast way)

2009-02-11 Thread Michel Claveau
Hi! I get a collection of (COM) objects: tobj = oie.prepartableau(#it's a JScript array of objects, returned by a JScript function via COM I convert (translate? transtype?) this collection to LIST: lobj = list(tobj) But it's (very) slow(*). I tried [i for i in tobj] ; I tried with it