Pythoncom, HELP !

Adnand nundee at chello213047182160.sc-graz.chello.at
Tue Oct 2 19:41:09 CEST 2001


Hi,

I'm stuck with the following problem:

I'm given a COM Object with a method ..  M (VARIANT arg);  The manual
says
that arg is a SAFEARRAY of VARIANTs, each VARIANT beeing  an 'int'.
How must I prepare this arg in Python (I'm using the Pythoncom interface
in win32) ?
I tried  "object.M(tuple(list_of_ints))"  but it didn't work. The result

of  passing "tuple(list_of_ints)" is apparently a SAFEARRAY of ints and
not
a SAFEARRAY of VARIANTs (of ints).

Could anyone help me ?
Any solution or hint would be greatly appreciated.

Thanks in advance,
Nandi





More information about the Python-list mailing list