commit | 1072c3872df18951a26424cad0d9fcdcce6cc1b3 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Dec 12 22:06:00 2000 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Dec 12 22:06:00 2000 +0000 |
tree | 7a73a5f475ee09b77f8c58b5828853899ce8f918 | |
parent | ff63f2023d08add363ab595e90e0a07dca8cf6d8 [diff] |
Add popitem().
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 @@ if not self.data.has_key(key): self.data[key] = failobj return self.data[key] + def popitem(self): + return self.data.popitem()