data size

harry hartanto at telusplanet.net
Thu Nov 8 19:07:22 EST 2001


if you put data into dictionary, how do we calculate the data size?

key:data

example:

dict = {"key1":1,2,3,4; "key2": "hello", [1,2,3]}

how much is the data structure will cost? how to calculate it?

if in c++ : char array1[8] will cost 8 x 8 bytes = 64 bytes





More information about the Python-list mailing list