> Would you care to precisely define "REAL size" first? Consider:
>
> >>> atuple = (1, 2)
> >>> mylist = [(0, 0), atuple]
>
> Should sizeof(mylist) include sizeof(atuple) ?

 No, I'm talking about "simple" lists, without REFERENCES to another
objects into it.

 I mean:

lists = [ 0, 1, 2, 3, 4, (1,2), 3]

 or

array = [ [0,0,0,0,0,0,0], [1,1,1,1,2,1,2], ... ]

 Maybe I can "pickle" the object to disk and see the filesize ... :-?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to