[Python-checkins] CVS: python/nondist/peps pep-0285.txt,1.18,1.19
Guido van Rossum
gvanrossum@users.sourceforge.net
Tue, 02 Apr 2002 17:31:31 -0800
Update of /cvsroot/python/python/nondist/peps
In directory usw-pr-cvs1:/tmp/cvs-serv24108
Modified Files:
pep-0285.txt
Log Message:
Specify that pickle and marshal roundtrip.
Index: pep-0285.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0285.txt,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** pep-0285.txt 3 Apr 2002 00:58:01 -0000 1.18
--- pep-0285.txt 3 Apr 2002 01:31:29 -0000 1.19
***************
*** 128,131 ****
--- 128,136 ----
also the section "Clarification" below.)
+ 9) What about pickle and marshal?
+
+ => I've added a paragraph to the specification requiring that
+ bool values roundtrip when pickled or marshalled.
+
Rationale
***************
*** 254,257 ****
--- 259,266 ----
created. At the C level, the existing globals Py_False and
Py_True will be appropriated to refer to False and True.
+
+ True and False will properly round-trip through pickling and
+ marshalling; for example pickle.loads(pickle.dumps(True)) will
+ return True.
All built-in operations that are defined to return a Boolean