It appears that entities cannot be compared directly:

  e1 = MyEntity.get('longkeystringhere')
  e2 = MyEntity.get('samekeystringhere')

"e1 == e2" will return False even if identical keys are provided.

But 'e1.key() == e2.key()' returns True.

So to compare entities you must compare the keys.  I couldn't find
this mentioned in the GAE docs.  Is this behavior intentional?
Desirable?  It seems to me that comparing two entities ought to be the
same as comparing the keys.

-Jason

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
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