I'm pickling a python dictonary, and storing it to a GAE BlobProperty. The BlobProperty has a 1MB size limit. I want to programmatically check that my object will 'fit' in that 1MB limit
import pickle
p = pickle.dumps(some_object)
print len(p)
>>>42000
But what is len(pickled_object) measuring? (the number of characters?), and how do I convert that to bytes, to check against the 1MB limit? I cant find the info on how the data in encoded to be able to compare the len() to the 1MB (e.g. bytes per 'character')
thanks