[python-win32] cmp oleobj & instance with Python 2.6.1 et pywin32

Mark Hammond skippy.hammond at gmail.com
Thu Feb 5 06:34:49 CET 2009


On 5/02/2009 1:18 AM, Michel Claveau wrote:
> return cmp(self._oleobj_, other)
> TypeError: The Python instance can not be converted to a COM object
>
>
> I solved the problem, by replace != by not(...is...) ; then, it's OK for
> me.
>
>
> But, I think than the error in cmp can affect others scripts developers.
> It's for that what I publish this message.

Yes, thanks for the report, but I already found that myself 2 days ago 
and have checked in a fix.  It was related to the new rich-comparison 
work for py3k.  If this is blocking you please let me know and I'll 
update a new build (although I'm very close to a *real* build...)

Cheers,

Mark


More information about the python-win32 mailing list