1 #!/usr/bin/env python 2 3 class A: 4 x = 1 5 6 class B(A): 7 y = 2 8 9 class B(A): 10 z = 3 11 12 result_1 = A.x 13 result_3 = B.z 14 15 # vim: tabstop=4 expandtab shiftwidth=4