how to store great array?

Erno Kuusela erno-news at erno.iki.fi
Wed Jan 31 05:17:14 EST 2001


In article <mailman.980846556.5007.python-list at python.org>, Thomas
Wouters <thomas at xs4all.net> writes:

| pointer + int + int + long + pointer (ob_sval is a placeholder that gets
| allocated to the right size in the PyString_New) = 160 bytes on a 32bit
| system, 256 bytes on a proper 64bit system, and 224 bytes on Win64. Plus the
| length of the string in whatever size a char is on that particular system
| (usually a single byte.)

however, this will only hold for machines with 1 bit per byte. :)

  -- erno



More information about the Python-list mailing list