[python-win32] C objects array through python COM layer

Mark Hammond mhammond at skippinet.com.au
Thu Jun 17 19:02:45 EDT 2004


> I have one requirement, can some one please suggest if this
> can be done
> through python COM layer.
> I have an array which has C objects. I want to pass the same
> array to a
> COM interface.
> I am getting error
> Objects of type 'PyCObject' can not be converted to a COM VARIANT

There is no facility for copying arbitrary data through COM, as COM doesn't
know to do do its magic (eg, marshalling) for them.

If you want to pass Python objects around, you should consider using
pickle(), then moving them as strings.

Mark.




More information about the Python-win32 mailing list