data size

harry hartanto at telusplanet.net
Thu Nov 8 19:28:18 EST 2001


actually, i think char data type in c is 1 byte (8bit)

"harry" <hartanto at telusplanet.net> wrote in message
news:_6FG7.33159$i4.5175661 at news0.telusplanet.net...
> 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