def __call__(self):
        """print out current history information with line number"""
        length = get_current_history_length()
        if length > 1:
            kount = icount(1).next
            for command in imap(get_history_item, xrange(1, length)):
                print '%s\t%s' % (kount(), command)
print out current history information with line number
recipes/Python/496822_Completer_history_viewer_support_more/recipe-496822.py