not sure if this helps, but here is the __str__ method for Key
if (self.has_id_or_name()):
encoded = base64.urlsafe_b64encode(self.__reference.Encode())
return encoded.replace('=', '')
else:
raise datastore_errors.BadKeyError(
'Cannot string encode an incomplete key!\n%s' %
self.__reference)
On Oct 27, 1:34 am, Andy Freeman <[EMAIL PROTECTED]> wrote:
> Argh!
>
> Is there any reason why they can't be made consistent? (There don't
> seem to be any user-visible guarantees on how key comparisons work.)
>
> On Oct 25, 10:27 pm, ryan <[EMAIL PROTECTED]> wrote:
>
> > hi andy! the sort orders of Keys and their string encodings are very
> > similar, but they're not guaranteed to be consistent, no.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---