Hi,<br><br>The only list without references to other objects in it is [ ].<br><br>0, 1, 2, etc are objects. Every value in Python is a reference to an object.<br><br>Remco<br><br><div class="gmail_quote">On Jan 10, 2008 9:14 AM, Santiago Romero <
<a href="mailto:sromero@gmail.com" target="_blank">
sromero@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><br>> Would you care to precisely define "REAL size" first? Consider:
<br>><br>> >>> atuple = (1, 2)<br>> >>> mylist = [(0, 0), atuple]<br>><br>> Should sizeof(mylist) include sizeof(atuple) ?<br><br></div> No, I'm talking about "simple" lists, without REFERENCES to another
<br>objects into it.<br><br> I mean:<br><br>lists = [ 0, 1, 2, 3, 4, (1,2), 3]<br><br> or<br><br>array = [ [0,0,0,0,0,0,0], [1,1,1,1,2,1,2], ... ]<br><br> Maybe I can "pickle" the object to disk and see the filesize ... :-?
<br><div><div></div><div><br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br></div></div></blockquote></div><br>