def maybe_evaluate(value):
 if isinstance(value, lazy):
  return value.evaluate()
 return value

def maybe_evaluate ( value ) : if isinstance ( value , lazy ) : return value . evaluate ( ) return value
evaluate value only if value is a :class:lazy instance .