class documentation
class ThreadLocalRegistry(ScopedRegistry[
A :class:`.ScopedRegistry` that uses a ``threading.local()`` variable for storage.
Method | __call__ |
Undocumented |
Method | __init__ |
Construct a new :class:`.ScopedRegistry`. |
Method | clear |
Clear the current scope, if any. |
Method | has |
Return True if an object is present in the current scope. |
Method | set |
Set the value for the current scope. |
Instance Variable | createfunc |
Undocumented |
Instance Variable | registry |
Undocumented |
Inherited from ScopedRegistry
:
Class Variable | __slots__ |
Undocumented |
Instance Variable | scopefunc |
Undocumented |
Construct a new :class:`.ScopedRegistry`. :param createfunc: A creation function that will generate a new value for the current scope, if none is present. :param scopefunc: A function that returns a hashable token representing the current scope (such as, current thread identifier).