I would not rely on the encoding str(key) remaining the same, no. The only
guarantee is that it will be interconvertible - eg, db.Key(str(key)) == key.
I can't think of a practical reason why you should be relying on this in the
first place, though.

-Nick Johnson

On Wed, Jun 17, 2009 at 3:43 AM, gae123 <[email protected]> wrote:

>
> Nick,
>
> can we consider what you write below to be part of the API or an
> internal implementation detail we whould not be relying on?
>
> Thanks
>
> > In the case of 'stringified' keys, what you are seeing is the base64
> > encoding of the protocol buffer containing the key. You can verify this
> by
> > going to shell.appspot.com and entering:
> >
> > ---
> > from google.appengine.ext import db
> > db.Key(mystr)
> > ---
>
> >
>


-- 
Nick Johnson, App Engine Developer Programs Engineer
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~---------~--~----~------------~-------~--~----~
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