tests/nested.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/nested.py Tue Aug 30 18:59:33 2016 +0200 1.3 @@ -0,0 +1,11 @@ 1.4 +a = 4 1.5 + 1.6 +def f(x): 1.7 + def g(y): 1.8 + def h(z): 1.9 + return x, y, z, a 1.10 + return h 1.11 + return g 1.12 + 1.13 +result = f(1)(2)(3) 1.14 +assert result == (1, 2, 3, 4)