[Python-checkins] python/nondist/peps pep-0307.txt,1.30,1.31

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Mon Aug 4 13:08:59 EDT 2003


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

Modified Files:
	pep-0307.txt 
Log Message:
In the section on the __reduce__ API, the description of the state
argument used an implicit __setitem__ in the last-resort case, but
the implementation actually uses setattr.  Repaired the pseudocode
to match reality.  Doc bug spotted by Jim Fulton.


Index: pep-0307.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0307.txt,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** pep-0307.txt	19 Feb 2003 01:59:59 -0000	1.30
--- pep-0307.txt	4 Aug 2003 19:08:57 -0000	1.31
***************
*** 207,211 ****
  
                       for k, v in state.items():
!                          obj[k] = v
  
      listitems    Optional, and new in this PEP.
--- 207,211 ----
  
                       for k, v in state.items():
!                          setattr(obj, k, v)
  
      listitems    Optional, and new in this PEP.





More information about the Python-checkins mailing list