Tuesday, April 27, 2010

persistent_id of cPickle

    cPickle’s persistent_id must return a string in one line, or load will raise a truncated exception. So you can use base64.b64encode to encode your result in to one line string. Base64.encode returns multi-line result.

No comments:

Post a Comment