tests/attributes_class_inherited.py | raw changeset files shortlog | syspython-as-target |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/attributes_class_inherited.py Sat Apr 20 00:59:58 2013 +0200 1.3 @@ -0,0 +1,15 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +class C: 1.7 + x = 1 1.8 + 1.9 +class D(C): 1.10 + pass 1.11 + 1.12 +def f(c): 1.13 + return c.x 1.14 + 1.15 +result_1 = f(C) 1.16 +result_2 = f(D) 1.17 + 1.18 +# vim: tabstop=4 expandtab shiftwidth=4