Lennart Regebro wrote: > On Mon, Jan 25, 2010 at 15:30, Nick Coghlan <ncogh...@gmail.com> wrote: >> Ah, you mean the case where both classes implement the recipe, but know >> nothing about each other and hence both return NotImplemented from their >> root comparison? > > Well, only one needs to return NotImplemented, actually.
I'd like to see a test case that proved that. With two different types and only one of them returning NotImplemented, the recursion should terminate inside the one with the root comparison that can handle both types. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia --------------------------------------------------------------- _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com