tests/attributes_instance_assignment.py | raw changeset files shortlog |
1.1 --- a/tests/attributes_instance_assignment.py Mon Feb 27 23:17:50 2012 +0100 1.2 +++ b/tests/attributes_instance_assignment.py Mon Feb 27 23:22:33 2012 +0100 1.3 @@ -15,9 +15,17 @@ 1.4 pass 1.5 a.x = 3 1.6 1.7 +def g(a): # {{z}, {x, z}} 1.8 + if a.z: 1.9 + a.x # {x, z} 1.10 + # {z} (else) 1.11 + a.z = 4 1.12 + 1.13 c = C(1) 1.14 -d = D(2) 1.15 +d = D(0) 1.16 f(c) 1.17 +g(d) 1.18 result_3 = c.x 1.19 +result_4 = d.z 1.20 1.21 # vim: tabstop=4 expandtab shiftwidth=4