struct.calcsize(fmt) - only gives size of fixed data types given by fmt sys.getsizeof(obj) - (added in Python 2.7) gives the size in bytes of builtin types, but not the actual used memory pympler.asizeof(obj) - gives the actual memory the object uses
I've moved to kaushikghose.wordpress.com