I use codecs to retain consistent unicode/utf-8 encoding and decoding for reading/writing to files. Should the codecs be applied when using the pickle/unpickle function? For example, the standard syntax is:
# pickle object f = open(object, 'wb') pickle.dump(object, f, 2) # unpickle object f = open(object, 'rb') object= pickle.load(f) or should it be: # pickle object f = codecs.open(object, 'wb', 'utf-8') pickle.dump(object, f, 2) # unpickle object f = codecs.open(object, 'rb', 'utf-8') object= pickle.load(f)
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor