[Python-checkins] python/dist/src/Misc NEWS,1.690,1.691

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Thu, 06 Mar 2003 15:54:30 -0800


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv11840/Misc

Modified Files:
	NEWS 
Log Message:
SF patch #693753:  fix for bug 639806: default for dict.pop
(contributed by Michael Stone.)


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.690
retrieving revision 1.691
diff -C2 -d -r1.690 -r1.691
*** NEWS	6 Mar 2003 01:56:12 -0000	1.690
--- NEWS	6 Mar 2003 23:54:27 -0000	1.691
***************
*** 13,16 ****
--- 13,22 ----
  -----------------
  
+ - dict.pop now takes an optional argument specifying a default
+   value to return if the key is not in the dict.  If a default is not
+   given and the key is not found, a KeyError will still be raised.
+   Parallel changes were made to UserDict.UserDict and UserDict.DictMixin.
+   [SF patch #693753] (contributed by Michael Stone.)
+ 
  - sys.getfilesystemencoding() was added to expose
    Py_FileSystemDefaultEncoding.