readline.remove_history_item()
  • References/Python/Python/Text Processing

readline.remove_history_item(pos) Remove history item specified by its position from the history. The position is zero-based

2025-01-10 15:47:30
re.regex.pattern
  • References/Python/Python/Text Processing

regex.pattern The pattern string from which the RE object was compiled.

2025-01-10 15:47:30
difflib.diff_bytes()
  • References/Python/Python/Text Processing

difflib.diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'', fromfiledate=b'', tofiledate=b'', n=3, lineterm=b'\n') Compare a

2025-01-10 15:47:30
re.match.lastgroup
  • References/Python/Python/Text Processing

match.lastgroup The name of the last matched capturing group, or None if the group didn’t have a name, or if no

2025-01-10 15:47:30
re.subn()
  • References/Python/Python/Text Processing

re.subn(pattern, repl, string, count=0, flags=0) Perform the same operation as sub(), but return a tuple (new_string

2025-01-10 15:47:30
re.compile()
  • References/Python/Python/Text Processing

re.compile(pattern, flags=0) Compile a regular expression pattern into a regular expression object, which can be used for matching

2025-01-10 15:47:30
re.match.lastindex
  • References/Python/Python/Text Processing

match.lastindex The integer index of the last matched capturing group, or None if no group was matched at all.

2025-01-10 15:47:30
readline.insert_text()
  • References/Python/Python/Text Processing

readline.insert_text(string) Insert text into the line buffer at the cursor position. This calls rl_insert_text()

2025-01-10 15:47:30
difflib.context_diff()
  • References/Python/Python/Text Processing

difflib.context_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n') Compare a and

2025-01-10 15:47:30
string.Formatter.format_field()
  • References/Python/Python/Text Processing

format_field(value, format_spec) format_field() simply calls the global

2025-01-10 15:47:30