tests/attribute_access_constant.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/attribute_access_constant.py Sun May 20 02:16:08 2012 +0200 1.3 @@ -0,0 +1,16 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +class C: 1.7 + a = 123 1.8 + 1.9 +a1 = C.a # no need for usage tracking on C 1.10 +f1 = a1.__add__ # no need for usage tracking on a1 1.11 + 1.12 +c = C() 1.13 +a2 = c.a 1.14 +f2 = a2.__add__ 1.15 + 1.16 +result1_579 = f1(456) 1.17 +result2_579 = f2(456) 1.18 + 1.19 +# vim: tabstop=4 expandtab shiftwidth=4