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

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Feb 4 21:04:15 EST 2004


Guido:

> The number of arguments is the same.  It's just that what was a
> boolean in 2.2 is an int in 2.3.  IOW, protocol 0 is the old "text"
> protocol, protocol 1 is the old "binary" protocol, and protocol 2 is
> a new protocol introduced in Python 2.3.  And indeed, 0==False,
> 1==True.

This probably takes care of most cases, but there's still
a potential for breakage if a program is using a non-canonical
value for "true".

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+



More information about the Python-Dev mailing list