[Python-Dev] [Python-checkins] cpython: Elaborate that sizeof only accounts for the object itself. (original) (raw)
Eli Bendersky eliben at gmail.com
Sun Jun 17 12:20:32 CEST 2012
- Previous message: [Python-Dev] Anyone interested in a Solaris11 Build Slave?
- Next message: [Python-Dev] Raw string syntax inconsistency
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Jun 17, 2012 at 11:42 AM, martin.v.loewis < python-checkins at python.org> wrote:
http://hg.python.org/cpython/rev/cddaf96c8149 changeset: 77484:cddaf96c8149 parent: 77482:1f6c23ed8218 user: Martin v. Löwis <martin at v.loewis.de> date: Sun Jun 17 10:40:16 2012 +0200 summary: Elaborate that sizeof only accounts for the object itself.
files: Doc/library/sys.rst | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -441,6 +441,9 @@ 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. Great, thanks.
Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20120617/56bdc103/attachment.html>
- Previous message: [Python-Dev] Anyone interested in a Solaris11 Build Slave?
- Next message: [Python-Dev] Raw string syntax inconsistency
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]