7. String Services¶
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, unicode, list, tuple, bytearray, buffer, xrange section, and also the
string-specific methods described in the String Methods section.
To output formatted strings use template strings or the % operator
described in the String Formatting Operations section. Also, see the
re module for string functions based on regular expressions.
- 7.1.
stringâ Common string operations - 7.2.
reâ Regular expression operations - 7.3.
structâ Interpret strings as packed binary data - 7.4.
difflibâ Helpers for computing deltas - 7.5.
StringIOâ Read and write strings as files - 7.6.
cStringIOâ Faster version ofStringIO - 7.7.
textwrapâ Text wrapping and filling - 7.8.
codecsâ Codec registry and base classes - 7.9.
unicodedataâ Unicode Database - 7.10.
stringprepâ Internet String Preparation - 7.11.
fpformatâ Floating point conversions
