Reference Guide
2.5.0
|
Public Member Functions | |
def | __init__ (self, func) |
def | __str__ (self) |
Utility that defers any computation associated with computing a string until the string is required. This is particularly useful for exceptions, where the string will typically not need to be computed unless the program is about to stop. :param function func: a function that computes a string. :raises TypeError: if the func argument is not a function.
def psyclone.errors.LazyString.__str__ | ( | self | ) |
:raises TypeError: if the function stored in self._func does \ not return a string.
Definition at line 60 of file errors.py.
References psyclone.errors.LazyString._func.