class documentation

class Future(object): (source)

Constructor: Future(loader, *args, **kwargs)

View In Hierarchy

Wraps and acts as a proxy for a value to be loaded lazily (on demand). Adapted from https://gist.github.com/sergey-miryanov/2935416

Method __getattr__ Undocumented
Method __getitem__ Undocumented
Method __init__ :param loader: when called with no arguments, returns the value to be stored :type loader: callable
Method __len__ Undocumented
Method __nonzero__ Undocumented
Method __repr__ Undocumented
Method __setitem__ Undocumented
Method __str__ Undocumented
Method _data Undocumented
Instance Variable _d Undocumented
Instance Variable _loader Undocumented
def __getattr__(self, key): (source)

Undocumented

def __getitem__(self, key): (source)

Undocumented

def __init__(self, loader, *args, **kwargs): (source)

:param loader: when called with no arguments, returns the value to be stored :type loader: callable

def __len__(self): (source)

Undocumented

def __nonzero__(self): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def __setitem__(self, key, value): (source)

Undocumented

def __str__(self): (source)

Undocumented

def _data(self): (source)

Undocumented

Undocumented

Undocumented