def do_post(self, line): """ Execute post-processor. Available post-processors: {post} For more information about a particular post processor (in this case `save`) > help post save """ try: changed = post.run(self.interp, line) except: show_traceback() readline.write_history_file(self.hist) else: self._changed(changed)
def do_load(self, line): """ Execute load command. Available loaders: {load} For more information about a particular loader type the following (in this case we get help for the `tsv` loader): > help load tsv Examples: > load data = tsv("examples/data/data.csv", delim=',') > sol Solution ======== data/3 ====== data(2,"cow","boy") = true. data/4 ====== data(0,"a","b","3.0") = true. data(1,"c","d","4.0") = true. """ try: changed = load.run(self.interp, line) except: show_traceback() readline.write_history_file(self.hist) else: self._changed(changed)