def get_history(self):
        try:
            n = readline.get_current_history_length()
        except __HOLE__:
            return []
        return [readline.get_history_item(i) for i in range(1, n + 1)]
dataset/ETHPy150Open njr0/fish/fish/fish.py/REPL.get_history