readline.get_current_history_length() Return the number of items currently in the history. (This is different from ge
readline.remove_history_item(pos) Remove history item specified by its position from the history. The position is zero-based
readline.clear_history() Clear the current history. This calls clear_history() in the underlying library. The Python
re.purge() Clear the regular expression cache.
difflib.ndiff(a, b, linejunk=None, charjunk=IS_CHARACTER_JUNK) Compare a and b (lists of strings); return
difflib.get_close_matches(word, possibilities, n=3, cutoff=0.6) Return a list of the best “good enough” matches. word
unicodedata.combining(chr) Returns the canonical combining class assigned to the character chr as integer. Returns
get_opcodes() Return list of 5-tuples describing how to turn a into b. Each tuple is of the form (tag
textwrap.fill(text, width=70, **kwargs) Wraps the single paragraph in text, and returns a single string containing
readline.read_init_file([filename]) Execute a readline initialization file. The default filename is the last filename used.
Page 6 of 17