1
0
forked from VimPlug/jedi

recursions are now being catched

This commit is contained in:
David Halter
2012-07-09 12:05:07 +02:00
parent e78ba60a47
commit 37f2b8ff56
4 changed files with 70 additions and 5 deletions

View File

@@ -54,7 +54,7 @@ variable_rename(list())().
variable_rename(1)().
# -----------------
# recursion (should ignore)
# recursions (should ignore)
# -----------------
def recursion(a, b):
if a:
@@ -62,9 +62,22 @@ def recursion(a, b):
else:
return recursion(a+".", b+1)
##? int() float()
#? int() float()
recursion("a", 1.0)
def other(a):
return recursion2(a)
def recursion2(a):
if a:
return other(a)
else:
return recursion2("")
return a
#? int() str() str()
recursion2(1)
# -----------------
# ordering
# -----------------