diff options
author | Guido van Rossum <guido@python.org> | 2000-12-12 22:06:00 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-12-12 22:06:00 +0000 |
commit | 62674d843b3c2a650f76432889750e4e78bdf299 (patch) | |
tree | 88bde43be2effe76dcc8b5ccd7610a997f958324 /Lib/UserDict.py | |
parent | 6576e955b27206ce44bf78ce25b48a90c74cd944 (diff) | |
download | cpython-62674d843b3c2a650f76432889750e4e78bdf299.tar.gz |
Add popitem().
Diffstat (limited to 'Lib/UserDict.py')
-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 9b6e73b50f..b642db73b5 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() |