From 1e5d0ff8a02d18367001f009886241319331cc3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 17 Jun 2012 10:40:16 +0200 Subject: Elaborate that sizeof only accounts for the object itself. --- Doc/library/sys.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 55c06ca..c7b3ea9 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -441,6 +441,9 @@ always available. 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. -- cgit v0.12