pickle.dump(..) interface change ... documentation
4 Feb
2004
4 Feb
'04
7:49 p.m.
Hi, I just ran across something that looks like a very unfortunate interface change in the pickle module: Python 2.2: dump(object, file[, bin]) Python 2.3: dump(object, file[, protocol[, bin]]) ...and indeed I have code, which uses pickle.dump(obj, f, True). Hmm, ok, so probably this means now (under python 2.3) I'm using protocol number 1 (==True)?! Tricky. :-) Maybe that warrants a comment in the docs? Thanks, Chris -- Chris Stork <> Support eff.org! <> http://www.ics.uci.edu/~cstork/ OpenPGP fingerprint: B08B 602C C806 C492 D069 021E 41F3 8C8D 50F9 CA2F
7378
Age (days ago)
7379
Last active (days ago)
7 comments
6 participants
participants (6)
-
Brad Clements
-
Christian Stork
-
Fred L. Drake, Jr.
-
Greg Ewing
-
Guido van Rossum
-
Skip Montanaro