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

2009-02-04 Thread Mark Hammond
On 5/02/2009 6:33 PM, Michel Claveau wrote: And, I am sorry to have disturbed this rhythm. Not at all - I put these builds up exactly for this reason - it was just luck that I stumbled across the issue first (surprisingly, the test suite never actually tested a com object against None and I f

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

2009-02-04 Thread Michel Claveau
Hi! return cmp(self._oleobj_, other) TypeError: The Python instance can not be converted to a COM object 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

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

2009-02-04 Thread Mark Hammond
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

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

2009-02-04 Thread Michel Claveau
Hi! (sorry for my "bizzaroid" english) I have a script who use DOM objects (COM-subobjects from win32com.client.Dispatch('InternetExplorer.Application'). These objects are in instances properties. And, I compare with other instances/python_objects. e.g. a line like : if form.conteneurc