The string module dates from the earliest versions of Python. Many of the functions previously implemented in the module have been moved to methods of str objects. The string module retains several useful constants and classes for working with str objects, and this discussion will concentrate on them.
This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.