summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-12-12 22:06:00 (GMT)
committerGuido van Rossum <guido@python.org>2000-12-12 22:06:00 (GMT)
commit1072c3872df18951a26424cad0d9fcdcce6cc1b3 (patch)
tree7a73a5f475ee09b77f8c58b5828853899ce8f918 /Lib
parentff63f2023d08add363ab595e90e0a07dca8cf6d8 (diff)
downloadcpython-1072c3872df18951a26424cad0d9fcdcce6cc1b3.zip
cpython-1072c3872df18951a26424cad0d9fcdcce6cc1b3.tar.gz
cpython-1072c3872df18951a26424cad0d9fcdcce6cc1b3.tar.bz2
Add popitem().
Diffstat (limited to 'Lib')
-rw-r--r--Lib/UserDict.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/UserDict.py b/Lib/UserDict.py
index 9b6e73b..b642db7 100644
--- a/Lib/UserDict.py
+++ b/Lib/UserDict.py
@@ -38,3 +38,5 @@ class UserDict:
if not self.data.has_key(key):
self.data[key] = failobj
return self.data[key]
+ def popitem(self):
+ return self.data.popitem()