On Mon, Nov 10, 2008 at 10:18 AM, Calvin Spealman <[EMAIL PROTECTED]> wrote:

> It is often preferred that you use __eq__, __ne__, __lt__, etc.
> instead of __cmp__. If you are only defined equality, define __eq__
> and (as usually applicable) __ne__.

Why is that? It seems that it would be more error-prone to implement
similar logic across two or more functions than just one function.


Dave.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to