def register_post_execute(self, func):
if not callable(func):<EOL><INDENT>raise ValueError('<STR_LIT>' % func)<EOL><DEDENT>self._post_execute[func] = True<EOL>
Register a function for calling after code execution.