<div dir="ltr"><div class="gmail_quote">On Sun, Jun 17, 2012 at 11:42 AM, martin.v.loewis <span dir="ltr"><<a href="mailto:python-checkins@python.org" target="_blank">python-checkins@python.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><a href="http://hg.python.org/cpython/rev/cddaf96c8149" target="_blank">http://hg.python.org/cpython/rev/cddaf96c8149</a><br>
changeset: 77484:cddaf96c8149<br>
parent: 77482:1f6c23ed8218<br>
user: Martin v. Löwis <<a href="mailto:martin@v.loewis.de">martin@v.loewis.de</a>><br>
date: Sun Jun 17 10:40:16 2012 +0200<br>
summary:<br>
Elaborate that sizeof only accounts for the object itself.<br>
<br>
files:<br>
Doc/library/sys.rst | 3 +++<br>
1 files changed, 3 insertions(+), 0 deletions(-)<br>
<br>
<br>
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst<br>
--- a/Doc/library/sys.rst<br>
+++ b/Doc/library/sys.rst<br>
@@ -441,6 +441,9 @@<br>
does not have to hold true for third-party extensions as it is implementation<br>
specific.<br>
<br>
+ Only the memory consumption directly attributed to the object is<br>
+ accounted for, not the memory consumption of objects it refers to.<br>
+<br>
If given, *default* will be returned if the object does not provide means to<br>
retrieve the size. Otherwise a :exc:`TypeError` will be raised.<br>
<span class="HOEnZb"></span><br></blockquote></div><br>Great, thanks.<br><br>Eli<br><br></div>