readline.remove_history_item(pos) Remove history item specified by its position from the history. The position is zero-based
regex.pattern The pattern string from which the RE object was compiled.
difflib.diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'', fromfiledate=b'', tofiledate=b'', n=3, lineterm=b'\n') Compare a
match.lastgroup The name of the last matched capturing group, or None if the group didn’t have a name, or if no
re.subn(pattern, repl, string, count=0, flags=0) Perform the same operation as sub(), but return a tuple (new_string
re.compile(pattern, flags=0) Compile a regular expression pattern into a regular expression object, which can be used for matching
match.lastindex The integer index of the last matched capturing group, or None if no group was matched at all.
readline.insert_text(string) Insert text into the line buffer at the cursor position. This calls rl_insert_text()
difflib.context_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n') Compare a and
format_field(value, format_spec) format_field() simply calls the global
Page 7 of 17