It is a matter of intent. Not everything type that can be equal or not equal can also be greater or less than.
On Mon, Nov 10, 2008 at 6:31 PM, David Symonds <[EMAIL PROTECTED]> wrote: > > 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. > > > > -- Read my blog! I depend on your acceptance of my opinion! I am interesting! http://techblog.ironfroggy.com/ Follow me if you're into that sort of thing: http://www.twitter.com/ironfroggy --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---