Kaydet (Commit) 1072c387 authored tarafından Guido van Rossum's avatar Guido van Rossum

Add popitem().

üst ff63f202
...@@ -38,3 +38,5 @@ class UserDict: ...@@ -38,3 +38,5 @@ class UserDict:
if not self.data.has_key(key): if not self.data.has_key(key):
self.data[key] = failobj self.data[key] = failobj
return self.data[key] return self.data[key]
def popitem(self):
return self.data.popitem()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment