diff options
author | Guido van Rossum <guido@python.org> | 2000-12-12 22:06:00 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-12-12 22:06:00 (GMT) |
commit | 1072c3872df18951a26424cad0d9fcdcce6cc1b3 (patch) | |
tree | 7a73a5f475ee09b77f8c58b5828853899ce8f918 | |
parent | ff63f2023d08add363ab595e90e0a07dca8cf6d8 (diff) | |
download | cpython-1072c3872df18951a26424cad0d9fcdcce6cc1b3.zip cpython-1072c3872df18951a26424cad0d9fcdcce6cc1b3.tar.gz cpython-1072c3872df18951a26424cad0d9fcdcce6cc1b3.tar.bz2 |
Add popitem().
-rw-r--r-- | Lib/UserDict.py | 2 |
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() |