So I guess no one else pre-allocates IDs then :)

Maybe a googler could at least explain/fix the sample in the documentation 
of Key.from_path 
(http://code.google.com/appengine/docs/python/datastore/keyclass.html#Key_from_path)
 
as previously noted.

And a question about IDs, they're defined as being Python "longs" (arbitrary 
length integers) but 0 is not a valid ID (stated in the docs for 
Key.from_path()) - will the automatic ID allocation ever allocate a negative 
range at all ? If the answer is "yes" or "we may reserve the right to do 
this in the future" then an explicit note in the docs might help too (I take 
it from "0 not valid" that you'll never get a range that spans 0 of 
course). 

I only ask because I'll be passing the IDs to javascript code to handle, and 
as JS doesn't have an arbitrary precision integer type, I'll be manipulating 
 them as strings.

--
T



-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/RLHzmLGudScJ.
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