mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Port rev. 56767f.
This commit is contained in:
@@ -8,10 +8,15 @@
|
||||
|
||||
.. index:: module: re
|
||||
|
||||
The :mod:`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. See the module :mod:`re` for string functions based on regular
|
||||
expressions.
|
||||
The :mod:`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, Python's built-in string
|
||||
classes support the sequence type methods described in the
|
||||
:ref:`typesseq` section, and also the string-specific methods described
|
||||
in the :ref:`string-methods` section. To output formatted strings use
|
||||
template strings or the ``%`` operator described in the
|
||||
:ref:`typesseq-strings` section. Also, see the :mod:`re` module for
|
||||
string functions based on regular expressions.
|
||||
|
||||
|
||||
String constants
|
||||
|
||||
Reference in New Issue
Block a user