People have wanted to know the size of Python objects for a long time, but before they had to dig into the source code. With the new function sys.getsizeof, you don’t have to. Here are a list of sizes in bytes of common Python datatypes. (containers are empty). Type 32-bit 64-bit int 12 24 float 16 24 tuple 28 56 list 36 72 dict 140 280 old class 48 96 old instance 36 72 new class 452 904 new inst