[python-win32] Can I pass non-VARIANT SAFARRAYs via COM withoutconverting to VA RIANT?

Mark Hammond mhammond at skippinet.com.au
Sun Nov 27 01:08:45 CET 2005


> Is there any way that I can configure python-win32 to use VT_V8 as
> the element type of a SAFE_ARRAY and suppress any conversion to
> VT_VARIANT?

Not without patching the code, I'm afraid.  The code (oleargs.cpp) has
explicit support for VT_UI1, but everything else does go through the generic
variant conversion.  Additional support for other types could be added, but
I'm wondering if specific support for numarray would make sense.  I'd be
happy to offer guidance should you choose to look at these enhancements.

Mark



More information about the Python-win32 mailing list