From 1072c3872df18951a26424cad0d9fcdcce6cc1b3 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 12 Dec 2000 22:06:00 +0000 Subject: Add popitem(). --- Lib/UserDict.py | 2 ++ 1 file changed, 2 insertions(+) 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() -- cgit v0.12