Memory sizes of python objects?
Michael Hudson
mwh at python.net
Mon Mar 25 08:46:25 EST 2002
Erno Kuusela <erno-news at erno.iki.fi> writes:
> | The difference in memory consumption between creating a list
> | of size 1,000,000 filled with 0's and the same size list filled
> | with integers from 0 to 999,999 is rather large...
>
> you make it sound more mysterious than it is - only numbers under
> 100 and identifier-like string literals get interned, afaik.
One character strings too. Also the empty string and the empty tuple.
M.
--
I'm sorry, was my bias showing again? :-)
-- William Tanksley, 13 May 2000
More information about the Python-list
mailing list