MCPcopy Index your code
hub / github.com/python/cpython / get_cache_token

Function get_cache_token

Lib/_py_abc.py:4–11  ·  view source on GitHub ↗

Returns the current ABC cache token. 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.

()

Source from the content-addressed store, hash-verified

2
3
4def get_cache_token():
5 """Returns the current ABC cache token.
6
7 The token is an opaque object (supporting equality testing) identifying the
8 current version of the ABC cache for virtual subclasses. The token changes
9 with every call to ``register()`` on any ABC.
10 """
11 return ABCMeta._abc_invalidation_counter
12
13
14class ABCMeta(type):

Callers 4

dispatchFunction · 0.90
registerFunction · 0.90
_dump_registryMethod · 0.90
_dump_registryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…