[Zope3-Users] Re: Interface tests: NotImplemented or NotImplementedError

Chris Withers chris at simplistix.co.uk
Thu Oct 20 07:13:59 EDT 2005


Fred Drake wrote:
> A rich-comparison method should return NotImplemented to indicate that
> it doesn't implement the specific comparison; the response should be
> for Python to allow the other operand a chance to handle the
> comparison (inverted, of course).

Oh :-(

What an unfortunate name, I'd have called it Uncomparable on some such...

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope3-users mailing list