'Set the number of lines to save in the history file.
write_history_file() uses this value to truncate the history file
when saving. Negative values imply unlimited history file size.'

def set_history_length(self, length):

    self._history.set_history_length(length)
