diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-12-24 16:13:32 -0500 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-12-24 16:13:32 -0500 |
commit | 3edcc7832e04691bc6309915201e4461a18a0eb0 (patch) | |
tree | 4f37645d7a13d338458d173c8a0679af74fefb06 /Doc | |
parent | 5ea95249d58e298e4aa0b305e7088789803db466 (diff) | |
download | cpython-git-3edcc7832e04691bc6309915201e4461a18a0eb0.tar.gz |
#16832: s/integer/object/ in docs/docstring, and add whatsnew entry.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/abc.rst | 6 | ||||
-rw-r--r-- | Doc/whatsnew/3.4.rst | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/Doc/library/abc.rst b/Doc/library/abc.rst index 7853d31b55..7a73704bf6 100644 --- a/Doc/library/abc.rst +++ b/Doc/library/abc.rst @@ -318,9 +318,9 @@ The :mod:`abc` module also provides the following functions: Returns the current abstract base class cache token. - The token is an opaque integer identifying the current version of the - abstract base class cache for virtual subclasses. This number changes - with every call to :meth:`ABCMeta.register` on any ABC. + The token is an opaque object (that supports equality testing) identifying + the current version of the abstract base class cache for virtual subclasses. + The token changes with every call to :meth:`ABCMeta.register` on any ABC. .. versionadded:: 3.4 diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index d4f92aacc8..9f8583d4d3 100644 --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -473,6 +473,12 @@ trace memory blocks allocated by Python. It provides the following information: Improved Modules ================ +abc +--- + +New function :func:`abc.get_cache_token` can be used to know when to invalidate +caches that are affected by changes in the object graph. (Contributed +by Ćukasz Langa in :issue:`16832`.) aifc ---- |