mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-15 21:52:35 +08:00
added dict.get, because it returned tuples (don't ask why)
This commit is contained in:
1 parent
77dac95ee0
commit
d143024408
1 file changed
+8
@@ -163,6 +163,14 @@ class dict():
|
||||
# has a strange docstr
|
||||
pass
|
||||
|
||||
def get(self, k, d=None):
|
||||
# TODO implement
|
||||
try:
|
||||
#return self.__elements[k]
|
||||
pass
|
||||
except KeyError:
|
||||
return d
|
||||
|
||||
|
||||
#--------------------------------------------------------
|
||||
# basic types
|
||||
|
||||
Reference in new issue
Block a user