On Sun, Jun 17, 2012 at 11:42 AM, martin.v.loewis <
python-check...@python.org> wrote:

> http://hg.python.org/cpython/rev/cddaf96c8149
> changeset:   77484:cddaf96c8149
> parent:      77482:1f6c23ed8218
> user:        Martin v. Löwis <mar...@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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to