web.web.utils.ThreadedDict

Package web :: Package web :: Module utils :: Class ThreadedDict |
[hide private]
[frames] | no frames]

# Class ThreadedDict

source code

Known Subclasses:
  - session.Session

Thread local storage.

    >>> d = ThreadedDict()
    >>> d.x = 1
    >>> d.x
    1
    >>> import threading
    >>> def f(): d.x = 2
    ...
    >>> t = threading.Thread(target=f)
    >>> t.start()
    >>> t.join()
    >>> d.x
    1

Instance Methods | [hide private]
__delattr__(self, key) | source code
__getattr__(self, key) | source code
__hash__(self) | source code
__setattr__(self, key, value) | source code
_getd(self) | source code