tests/attribute_access_type_restriction_for.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/attribute_access_type_restriction_for.py Mon Sep 13 01:44:37 2010 +0200 1.3 @@ -0,0 +1,17 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +class C: 1.7 + def f(self): 1.8 + return 1 1.9 + 1.10 +class D: 1.11 + def g(self): 1.12 + return 2 1.13 + 1.14 +c = C() 1.15 +for j in xrange(0, 10): 1.16 + k = c.f() 1.17 + 1.18 +result_1 = k 1.19 + 1.20 +# vim: tabstop=4 expandtab shiftwidth=4