1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/attributes_instance_assignment_external_unknown.py Wed Jun 08 00:21:12 2011 +0200
1.3 @@ -0,0 +1,21 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +class C:
1.7 + def __init__(self):
1.8 + self.a = 0
1.9 +
1.10 +class D:
1.11 + def __init__(self):
1.12 + self.a = 1
1.13 +
1.14 +def f(obj, value):
1.15 + obj.a = value
1.16 +
1.17 +c = C()
1.18 +d = D()
1.19 +f(c, 123)
1.20 +f(d, 456)
1.21 +result_123 = c.a
1.22 +result_456 = d.a
1.23 +
1.24 +# vim: tabstop=4 expandtab shiftwidth=4