def reset(self): """ Resets the tool's :attr:`log`, its :attr:`return_value`. """ MessageRecorder.reset(self) self.return_value = None if self._is_root: initialize_semiconstant_caches() self.add_info('Reset.')
def __init__(self, parent=None): MessageRecorder.__init__(self, parent=parent) if self._is_root: initialize_semiconstant_caches() #: The object to be passed as result. self.return_value = None
def reset(self): """ Resets the parser. Call this before running the parser. """ MessageRecorder.reset(self) self.has_run = False