]> granicus.if.org Git - python/commitdiff
Add popitem().
authorGuido van Rossum <guido@python.org>
Tue, 12 Dec 2000 22:06:00 +0000 (22:06 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 12 Dec 2000 22:06:00 +0000 (22:06 +0000)
Lib/UserDict.py

index 9b6e73b50f26428eb329482674d713b99a3bd5d6..b642db73b57e480c55dbd4af7474d0983d77e126 100644 (file)
@@ -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()