mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
setdefault fix
This commit is contained in:
@@ -199,6 +199,10 @@ class dict():
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
def setdefault(self, k, d):
|
||||||
|
# TODO maybe also return the content
|
||||||
|
return d
|
||||||
|
|
||||||
|
|
||||||
class reversed():
|
class reversed():
|
||||||
def __init__(self, sequence):
|
def __init__(self, sequence):
|
||||||
|
|||||||
@@ -27,6 +27,9 @@ next(reversed())
|
|||||||
#? str()
|
#? str()
|
||||||
next(open(''))
|
next(open(''))
|
||||||
|
|
||||||
|
#? int()
|
||||||
|
{'a':2}.setdefault('a', 3)
|
||||||
|
|
||||||
# -----------------
|
# -----------------
|
||||||
# re
|
# re
|
||||||
# -----------------
|
# -----------------
|
||||||
|
|||||||
Reference in New Issue
Block a user