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