[Python-checkins] python/nondist/peps pep-0307.txt,1.28,1.29

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Thu, 13 Feb 2003 08:08:12 -0800


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1:/tmp/cvs-serv11284/nondist/peps

Modified Files:
	pep-0307.txt 
Log Message:
Added info about the new HIGHEST_PROTOCOL module constant.


Index: pep-0307.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0307.txt,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** pep-0307.txt	11 Feb 2003 21:23:59 -0000	1.28
--- pep-0307.txt	13 Feb 2003 16:08:06 -0000	1.29
***************
*** 88,92 ****
      special case is added here:  passing a negative number selects the
      highest protocol version supported by a particular implementation.
!     This works in previous Python versions, too.
  
      The pickle.py module has supported passing the 'bin' value as a
--- 88,97 ----
      special case is added here:  passing a negative number selects the
      highest protocol version supported by a particular implementation.
!     This works in previous Python versions, too, and so can be used to
!     select the highest protocol available in a way that's both backward
!     and forward compatible.  In addition, a new module constant
!     HIGHEST_PROTOCOL is supplied by both pickle and cPickle, equal to
!     the highest protocol number the module can read.  This is cleaner
!     than passing -1, but cannot be used before Python 2.3.
  
      The pickle.py module has supported passing the 'bin' value as a