[Tutor] pickle in unicode format

Kent Johnson kent37 at tds.net
Tue Apr 5 19:16:45 CEST 2005


Kent Johnson wrote:
> BRINER Cedric wrote:
>> unicode(pickle.dumps(a)) doesn't work !
> 
> 
> pickle.dumps() doesn't return a value, it puts the data into 'a' which 
> must be a file-like object.

Oops, pickle.dumps() does return a value and the parameter is the object to be pickled. I even knew 
that before I sent the email, but I forgot to correct it.

Kent



More information about the Tutor mailing list