Dennis Chung wrote:
> That makes sense, the default value of the first parameter is 0 where
> it should be None.  I'm assume this is a problem in the COM object
> definition in which case I can raise an issue with HP.
>
> o.Test.Run(0)
> Traceback (most recent call last):
>   File "<pyshell#0>", line 1, in <module>
>     o.Test.Run(0)
>   File "<COMObject <unknown>>", line 3, in Run
> TypeError: The Python instance can not be converted to a COM object
>
> o.Test.Run(None) is successful as is o.Test.Run(o.Test) or any COM
> object reference for that matter.  Looks like the Run method does not
> report errors if an incorrect object is passed.

I'm hoping Mark will find this interesting and investigate.  I don't
quite understand how makepy.py let this slip by.  The first and third
parameters are both VT_DISPATCH, so why would the first come up with a
default of 0, when the third comes up with a default of None?

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to