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