class A(object): my_attr = 17 class B(A): print(my_attr) #