#!/usr/local/bin/python3 class A(object): a = {} class B(A): pass A.a[1] = 1 B.a[2] = 2 print(A.a, B.a)