On Mon, Jan 25, 2010 at 14:34, Nick Coghlan <ncogh...@gmail.com> wrote:
> However, returning NotImplemented generally implies that A and B are
> *different* classes

Which is exactly the case here.

> so I think this is more of a theoretical problem
> than a practical one.

How so? The whole point of returning NotImplemented is to give the
other class a go. But if that other class implements this recipe, you
get infinite recursion. It seems to me that it means that this recipe
is broken, as it doesn't handle the other class returning
NotImplemented.

-- 
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
_______________________________________________
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

Reply via email to