(original) (raw)
http://hg.python.org/cpython/rev/cddaf96c8149
changeset: � 77484:cddaf96c8149
parent: � � �77482:1f6c23ed8218
user: � � � �Martin v. L�wis <martin@v.loewis.de>
date: � � � �Sun Jun 17 10:40:16 2012 +0200
summary:
�Elaborate that sizeof only accounts for the object itself.
files:
�Doc/library/sys.rst | �3 +++
�1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -441,6 +441,9 @@
� �does not have to hold true for third-party extensions as it is implementation
� �specific.
+ � Only the memory consumption directly attributed to the object is
+ � accounted for, not the memory consumption of objects it refers to.
+
� �If given, *default* will be returned if the object does not provide means to
� �retrieve the size. �Otherwise a :exc:`TypeError` will be raised.
Great, thanks.
Eli