diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2012-06-17 08:40:16 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2012-06-17 08:40:16 (GMT) |
commit | 1e5d0ff8a02d18367001f009886241319331cc3f (patch) | |
tree | b7bebf14ebaad5b05280b5334bcbdc3c28def0d5 /Doc/library/sys.rst | |
parent | 2b3eb0dbac9fa3c56176bb9d42b69a97034ccd05 (diff) | |
download | cpython-1e5d0ff8a02d18367001f009886241319331cc3f.zip cpython-1e5d0ff8a02d18367001f009886241319331cc3f.tar.gz cpython-1e5d0ff8a02d18367001f009886241319331cc3f.tar.bz2 |
Elaborate that sizeof only accounts for the object itself.
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r-- | Doc/library/sys.rst | 3 |
1 files changed, 3 insertions, 0 deletions
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. |