[Tutor] pickle in unicode format
BRINER Cedric
work at infomaniak.ch
Tue Apr 5 15:57:06 CEST 2005
hi,
I have this dictionnary :
a={'partition': u'/export/diskH1/home_evol/ricquebo',
'rsmFirstname': u'Fran\xe7ois',
'rsmLastname': u'Ricquebourg',
'size': u'8161222.0',
'size_max': '1'}
and I'd like to *serialize* it with pickle and that the output format
will be of type unicode.
unicode(pickle.dumps(a)) doesn't work !
or
pickle.dumps(a,protocol=2,bin='V')
doesn't seem to work :(
what am I doing wrong ??
Cedric BRINER
More information about the Tutor
mailing list