[Python-Dev] pickle.dump(..) interface change ... documentation

Christian Stork python-dev-list at cstork.org
Wed Feb 4 14:49:37 EST 2004


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



More information about the Python-Dev mailing list