[python-win32] win32com and COM-dynamic-server
Michel Claveau
mc at mclaveau.com
Fri Nov 4 01:25:01 CET 2005
Hi!
>>> Python will first query the object if it has a *property* named 'foo'
>>> before it asks if it has a *method* named foo. I suspect you are seeing
>>> this.
Yes, you are right!
Python send wFlags=pythoncom.DISPATCH_PROPERTYGET
With your advice, I had found than :
if wFlags & pythoncom.DISPATCH_PROPERTYGET:
raise COMException("inexistant", winerror.DISP_E_MEMBERNOTFOUND)
solve the problem.
Thank, Mark. You are great, in the Python's hall of fame!
Good night.
Michel Claveau
More information about the Python-win32
mailing list