Pythoncom, HELP !

Adnand nundee at
Tue Oct 2 19:41:09 CEST 2001


I'm stuck with the following problem:

I'm given a COM Object with a method ..  M (VARIANT arg);  The manual
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
a SAFEARRAY of VARIANTs (of ints).

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

Thanks in advance,

More information about the Python-list mailing list