mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
#16832: s/integer/object/ in docs/docstring, and add whatsnew entry.
This commit is contained in:
parent
5ea95249d5
commit
3edcc7832e
3 changed files with 12 additions and 6 deletions
|
|
@ -241,8 +241,8 @@ class ABC(metaclass=ABCMeta):
|
|||
def get_cache_token():
|
||||
"""Returns the current ABC cache token.
|
||||
|
||||
The token is an opaque integer identifying the current version of
|
||||
the ABC cache for virtual subclasses. This number changes with
|
||||
every call to ``register()`` on any ABC.
|
||||
The token is an opaque object (supporting equality testing) identifying the
|
||||
current version of the ABC cache for virtual subclasses. The token changes
|
||||
with every call to ``register()`` on any ABC.
|
||||
"""
|
||||
return ABCMeta._abc_invalidation_counter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue