class documentation
class DynamicVar: (source)
A dynamically scoped variable. This is a per-thread dynamic variable, with an initial value of None. The bind() call establishes a new value that will be in effect for the duration of the resulting context manager. This is intended to be used in conjunction with a decorator.
Method | __init__ |
Undocumented |
Method | bind |
Bind the dynamic variable to the supplied value. |
Method | get |
Return the current value of the dynamic variable. |
Method | _values |
Undocumented |
Instance Variable | _local |
Undocumented |