tests/attributes_class_copy.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/attributes_class_copy.py Sun May 24 02:16:33 2009 +0200 1.3 @@ -0,0 +1,12 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +class C: 1.7 + clsattr = 123 1.8 + clsattr2 = clsattr 1.9 + 1.10 +x = 0 # prevent optimisation of assignments 1.11 +x = C # prevent optimisation of assignments 1.12 +a = x.clsattr 1.13 +b = x.clsattr2 1.14 + 1.15 +# vim: tabstop=4 expandtab shiftwidth=4