If it has references it could be following that chain, and pickling lots of other things too ? Also google may have put the hard 1mb limit into pickle as well just so you don't get yourself into troub;e remember you can't put anything bigger than 1m into the datastore or memcache, so pickling anything bigger is probably not a lot of use in most cases
Rgds T On May 27, 11:31 am, WeatherPhilip <[email protected]> wrote: > I'm getting a MemoryError exception when I try and pickle an object. > The traceback is: > > value = pickle.dumps(value) > File "/base/python_dist/lib/python2.5/pickle.py", line 1359, in > dumps > Pickler(file, protocol).dump(obj) > File "/base/python_dist/lib/python2.5/pickle.py", line 218, in dump > self.save(obj) > File "/base/python_dist/lib/python2.5/pickle.py", line 280, in save > f(self, obj) # Call unbound method with explicit self > File "/base/python_dist/lib/python2.5/pickle.py", line 643, in > save_dict > self._batch_setitems(obj.iteritems()) > File "/base/python_dist/lib/python2.5/pickle.py", line 657, in > _batch_setitems > save(v) > File "/base/python_dist/lib/python2.5/pickle.py", line 280, in save > f(self, obj) # Call unbound method with explicit self > File "/base/python_dist/lib/python2.5/pickle.py", line 482, in > save_string > self.write(STRING + repr(obj) + '\n') > MemoryError > > I admit that the value is probably quite large -- maybe 2 or 3 > megabytes, but this behavior seems a little excessive. Is there some > sort of limit that I should know about? > > Thanks > > Philip --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
