From: Martin v. Löwis Date: Sun, 17 Jun 2012 08:40:16 +0000 (+0200) Subject: Elaborate that sizeof only accounts for the object itself. X-Git-Tag: v3.3.0b1~210 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e5d0ff8a02d18367001f009886241319331cc3f;p=python Elaborate that sizeof only accounts for the object itself. --- diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 55c06ca643..c7b3ea95b0 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.