COM object Type

Mark Hammond mhammond at skippinet.com.au
Tue Oct 19 11:50:36 EDT 1999


> I would like to know what is the type of a COM object. What
> module do I have
> to import to have this type handy?

Every COM interface has a different type.  These types are exposed via
the pythoncom.TypeIIDs map, keyed by IID.

Eg:

>>> pythoncom.TypeIIDs[pythoncom.IID_IDispatch]
<type 'PyIDispatch'>
>>>

Mark.





More information about the Python-list mailing list