terms.call_resolver.LazyValue

terms.call_resolver.LazyValue(value, lexeme)

Deferred Python value.

This object holds a value (a string or a number). It returns its value only when it is evaluated via .eval().

Parameters

value : str or numeric

The value it holds.

lexeme : str

The string that generated the value it holds

Methods

Name Description
eval Evaluates the value.

eval

terms.call_resolver.LazyValue.eval(*args, **kwargs)

Evaluates the value.

Simply returns the value. Other arguments are ignored but required for consistency among all the lazy objects.

Returns

value :

The value this obejct represents.