[Python-Dev] cpython: Issue #10576: Add a progress callback to gcmodule

Georg Brandl g.brandl at gmx.net
Mon Apr 16 09:42:59 CEST 2012


On 15.04.2012 13:42, kristjan.jonsson wrote:
> http://hg.python.org/cpython/rev/88f8ef5785d7
> changeset:   76319:88f8ef5785d7
> user:        Kristján Valur Jónsson<kristjan at ccpgames.com>
> date:        Sun Apr 15 11:41:32 2012 +0000
> summary:
>    Issue #10576: Add a progress callback to gcmodule
>
> files:
>    Doc/library/gc.rst  |   39 ++++++++-
>    Lib/test/test_gc.py |  136 +++++++++++++++++++++++++++++++-
>    Misc/NEWS           |    3 +
>    Modules/gcmodule.c  |   80 +++++++++++++++++-
>    4 files changed, 249 insertions(+), 9 deletions(-)
>
>
> diff --git a/Doc/library/gc.rst b/Doc/library/gc.rst
> --- a/Doc/library/gc.rst
> +++ b/Doc/library/gc.rst
> @@ -153,8 +153,8 @@
>      .. versionadded:: 3.1
>
>
> -The following variable is provided for read-only access (you can mutate its
> -value but should not rebind it):
> +The following variables are provided for read-only access (you can mutate the
> +values but should not rebind them):
>
>   .. data:: garbage
>
> @@ -183,6 +183,41 @@
>         :const:`DEBUG_UNCOLLECTABLE` is set, in addition all uncollectable objects
>         are printed.
>
> +.. data:: callbacks
> +
> +   A list of callbacks that will be invoked by the garbage collector before and
> +   after collection.  The callbacks will be called with two arguments,
> +   :arg:`phase` and :arg:`info`.
> +
> +   :arg:`phase` can one of two values:

There is no role ":arg:".  Please fix it to *phase* etc.

Georg




More information about the Python-Dev mailing list