Commit 1e5d0ff8 authored by Martin v. Löwis's avatar Martin v. Löwis

Elaborate that sizeof only accounts for the object itself.

parent 2b3eb0db
...@@ -441,6 +441,9 @@ always available. ...@@ -441,6 +441,9 @@ always available.
does not have to hold true for third-party extensions as it is implementation does not have to hold true for third-party extensions as it is implementation
specific. 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 If given, *default* will be returned if the object does not provide means to
retrieve the size. Otherwise a :exc:`TypeError` will be raised. retrieve the size. Otherwise a :exc:`TypeError` will be raised.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment