On page http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html
There is no mention of the range of numbers that can be stored in an IntegerProperty and a FloatProperty. The Python 2.5 doc says: the range of a Python int can be found with sys.maxint With http://shell.appspot.com I determined that the Python int on the production server is 64 bits, math.log(sys.maxint,2) returns 63. A Python long has unlimited precision ([Python 2.5 doc] subject to available (virtual) memory only). Because a datastore object is limited in size to 1Mb, does this mean that the largest IntegerProperty we can store is an integer number with 8 million bits? Or is there a different size constraint on IntegerProperty? The Python 2.5 doc says: Python float are double precision, 64 bits. The largest Python float that can be represented on the production server is around 1e+308, maxfloat for doubles. And thus for FloatProperty also. """ Python int values are converted to Python long values prior to storage. A value stored as an int will be returned as a long. """ If a Python int is converted to a Python long before storage, how can a value be stored as a Python int? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
