summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-03-06 23:54:28 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-03-06 23:54:28 (GMT)
commita3e1e4cd79abe7069c8bc20db65161dd8c68b305 (patch)
tree18ff4fb0f06cc1a684da8ad62ce21a5b14c1a33c /Misc
parent2b4821347f00b01746562d58390a213924f2b102 (diff)
downloadcpython-a3e1e4cd79abe7069c8bc20db65161dd8c68b305.zip
cpython-a3e1e4cd79abe7069c8bc20db65161dd8c68b305.tar.gz
cpython-a3e1e4cd79abe7069c8bc20db65161dd8c68b305.tar.bz2
SF patch #693753: fix for bug 639806: default for dict.pop
(contributed by Michael Stone.)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 81df415..0a446df 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,12 @@ What's New in Python 2.3 beta 1?
Core and builtins
-----------------
+- 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.