On this page
abc.get_cache_token
Prev: abc.abstractstaticmethod | Up: abc | Next: abc.update_abstractmethods
Rel: abc.ABC, abc.ABCMeta, abc.abstractclassmethod, abc.abstractmethod
Ref: docs.python.org — abc.get_cache_token
Tags: #public #python3 #stdlib #abc
Import
import abc
from abc import get_cache_token
Signature & Overview
abc.get_cache_token()
Returns the current ABC cache token.
Usage
import abc
t1 = abc.get_cache_token()
assert t1 is not None
Gotchas
- Internal cache invalidation token: Increments whenever any
ABCMeta.register()call mutates virtual subclass relationships.
REPL Inspect
from abc import get_cache_token
help(get_cache_token)
Linked from
Related notes
- tuts/python3/stdlib_module/abc/abstractstaticmethod Linked here; links to this page; shared tags: #abc, #stdlib
- tuts/python3/stdlib_module/abc/update_abstractmethods Linked here; links to this page; shared tags: #abc, #stdlib
- tuts/python3/stdlib_module/abc/ABC Linked here; shared tags: #abc, #stdlib
- tuts/python3/stdlib_module/abc/ABCMeta Linked here; shared tags: #abc, #stdlib
- tuts/python3/stdlib_module/abc/abstractclassmethod Linked here; shared tags: #abc, #stdlib
- tuts/python3/stdlib_module/abc/abstractmethod Linked here; shared tags: #abc, #stdlib
- tuts/python3/stdlib_module/abc links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/abc/abstractproperty shared tags: #abc, #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib