class documentation

class DynamicVar: (source)

View In Hierarchy

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
def __init__(self): (source)

Undocumented

Bind the dynamic variable to the supplied value.

def get(self): (source)

Return the current value of the dynamic variable.

def _values(self): (source)

Undocumented

Undocumented