from guppy import hpy
hp = hpy()
hp.setrelheap()
d = {}
d['key'] = [(1131, 3.11e+18), (9813, 2.48e+19), (4991, 9.11e+18)]
hp.heap()
Python: How to estimate / calculate memory footprint of data structures?