String Services — Python v3.0.1 documentation
The modules described in this chapter provide a wide range of string manipulation operations.
In addition, Python’s built-in string classes support the sequence type methods described in the Sequence Types — str, bytes, bytearray, list, tuple, range section, and also the string-specific methods described in the String Methods section. To output formatted strings, see the String Formatting section. Also, see the re module for string functions based on regular expressions.
- string — Common string operations
- re — Regular expression operations
- struct — Interpret bytes as packed binary data
- difflib — Helpers for computing deltas
- textwrap — Text wrapping and filling
- codecs — Codec registry and base classes
- unicodedata — Unicode Database
- stringprep — Internet String Preparation