Total maximal size of data

denis denis-bz-gg at t-online.de
Thu Jan 28 06:54:43 EST 2010


On Jan 25, 8:05 pm, Alexander Moibenko <moibe... at fnal.gov> wrote:
> I have a simple question to which I could not find an answer.
> What is the [total maximal] size of list including size of its elements?

Beware, sys.getsizeof(alist) is 4*len(alist) + a bit, regardless of
alists's contents ?!
See http://stackoverflow.com/questions/2117255/python-deep-getsizeof-list-with-contents

cheers
  -- denis




More information about the Python-list mailing list