pickle format question

Josiah Carlson jcarlson at uci.edu
Sat Oct 16 19:25:50 CEST 2004


> The documentation says, that the output from pickle.dumps() consists of 
> "printable ASCII" characters. Does it mean the range from ASCII 32 to 
> 127? Or the expected character range is different?
> 
> It would be best, if the character 127 was also excluded :-)
> 
> I need this information for creating the text file containing the 
> pickled Python data (strings, numbers, tuples, lists, nothing else) in 
> the encoded (enciphered) form.

Test it out on your data.  Encoding those objects using:
   pickle.dumps(obj, 0)
I was not able to find any instances of character 127, but that may be
due to my data.

 - Josiah




More information about the Python-list mailing list