Lichen

tests/nested_lambda.py

96:2219668ae7d9
2016-10-14 Paul Boddie Introduced access mode information for unambiguously-traversed attributes so that the appropriate instruction can be generated. Removed the generation of augmented attribute access plans and the computation of general attribute position ambiguity, since the information will not be used: in cases where ambiguity might need to be determined, attributes must be checked to determine their exact nature even if unambiguous.
     1 a = 4     2      3 def f(x):     4     g = lambda y, x=x: lambda z, x=x, y=y: (x, y, z, a)     5     return g     6      7 result = f(1)(2)(3)     8 assert result == (1, 2, 3, 4)