Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c38c5da commit fc3e61cCopy full SHA for fc3e61c
1 file changed
Lib/UserDict.py
@@ -26,3 +26,8 @@ def update(self, other):
26
else:
27
for k, v in other.items():
28
self.data[k] = v
29
+ def get(self, key, failobj=None):
30
+ if self.data.has_key(key):
31
+ return self.data[key]
32
+ else:
33
+ return failobj
0 commit comments