1
0
forked from VimPlug/jedi

lambda can be used as a default param in function, which means there have been slight changes to the parser to allow that (comma in a function definitions doesn't always mean new param), fixes #379

This commit is contained in:
Dave Halter
2014-03-11 12:24:36 +01:00
parent 18a012509f
commit cd7774f25f
2 changed files with 7 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ C().a()
# lambda param (#379)
# -----------------
class Test(object):
def __init__(self, pred=lambda x, y: x):
def __init__(self, pred=lambda a, b: a):
self.a = 1
#? int()
self.a