tests/locals.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/locals.py Mon Dec 11 23:49:25 2006 +0100 1.3 @@ -0,0 +1,16 @@ 1.4 +class A: 1.5 + pass 1.6 + 1.7 +def f1(a): 1.8 + c = a.x 1.9 + 1.10 +def f2(a): 1.11 + c = a.x 1.12 + 1.13 +def g(a): 1.14 + a.x = 456 1.15 + 1.16 +a = A() 1.17 +f1(a) 1.18 +g(a) 1.19 +f2(a)