Re: cpython: Issue #10576: Add a progress callback to gcmodule

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: cpython: Issue #10576: Add a progress callback to gcmodule

Georg Brandl-2
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<[hidden email]>
> 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


_______________________________________________
Python-Dev mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/lists%2B1324100855712-1801473%40n6.nabble.com