[python-win32] RE: Python-win32 Digest, Vol 2, Issue 19

Niki Spahiev niki at vintech.bg
Fri May 23 12:25:35 EDT 2003


Andrew MacIntyre wrote:
>>He told me
>>how because python can only access IDispatch interfaces (unless the
>>pythoncom has native support for the interfaces, which it does not for
>>ArcObjects), a large part of ArcObjects is not available to python
>>normally. They have written a generic interface system of some kind to
>>allow python, vbscript and jscript to access all these additional COM
>>classes anyway, but with low performance. This is not really available
>>to us except with ArcGIS 9.0, and I think also only for 
>>ModelBuilder for scripting geoprocessing.
> 
> 
> :-(  I had inferred that Pythoncom's early binding would be sufficient 
> to deal with the documented IDispatch restriction, but Bill's comments 
> would seem to make that unlikely...
> 
> I came across 1 reference to vtables (C++) based interfaces in the 
> Pythoncom help file, albeit in relation to COM servers, which gives 
> me faint hope this is still feasible.  Lots of reading & code inspection 
> still to do...

Also check ctypes project for vtables based COM.

HTH
Niki Spahiev





More information about the Python-win32 mailing list