This document is for an old version of Python that is no longer supported. You should upgrade and read the Python documentation for the current stable release. 7.1. string — Common string operations¶ Source code: Lib/string.py The string module contains a number of useful constants and classes, as well as some deprecated legacy functions that are also available as methods on strings. In addition,