mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Elaborate that sizeof only accounts for the object itself.
This commit is contained in:
parent
2b3eb0dbac
commit
1e5d0ff8a0
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue