MemoryError in data conversion

Gregory Ewing greg.ewing at canterbury.ac.nz
Tue Apr 15 08:08:25 EDT 2014


Mok-Kong Shen wrote:
> (It means that I have
> to pickle out the list to a file and read in the content of
> the file in order to have it as a bytearray etc. etc.)

No, you don't -- pickle.dumps() returns the pickled
data as a bytes object instead of writing it to a file.

-- 
Greg



More information about the Python-list mailing list