Add a str class entry to the "Text Sequence Type" section (issue #16209).

This commit also moves the documentation for the str built-in function to
the new class entry.  Links to :class:`str` now go to the class entry with
the string methods immediately afterwards.
This commit is contained in:
Chris Jerdonek 2012-11-28 01:38:40 -08:00
parent 21602183ce
commit bb4e941c6d
6 changed files with 79 additions and 57 deletions

View file

@ -982,13 +982,13 @@ done. This can be done using the :c:func:`PyErr_Fetch` and
}
.. index::
single: string; object representation
builtin: repr
Object Presentation
-------------------
.. index::
builtin: repr
builtin: str
In Python, there are two ways to generate a textual representation of an object:
the :func:`repr` function, and the :func:`str` function. (The :func:`print`
function just calls :func:`str`.) These handlers are both optional.