[python-win32] OLE COM in Python

Mark Hammond skippy.hammond at gmail.com
Tue May 24 02:47:14 CEST 2011


On 23/05/2011 7:59 PM, kycbusiness at kycbusiness.com wrote:
> Dear sir,
>
> I am looking for a sample python script to declare VARIANTs
> similar to one shown below which is for Perl. Your help will be very
> much appreciated.

win32com doesn't have a way to explicitly declare variants - you just 
pass normal Python objects (eg, simple objects like ints or floats, or 
lists of them) and they are converted to variants internally.

HTH,

Mark


More information about the python-win32 mailing list