On Jan 25, 8:05 pm, Alexander Moibenko <moibe...@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 -- http://mail.python.org/mailman/listinfo/python-list