mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Add popitem().
This commit is contained in:
parent
ff63f2023d
commit
1072c3872d
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue