diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-11-28 09:38:40 (GMT) |
---|---|---|
committer | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-11-28 09:38:40 (GMT) |
commit | bb4e941c6d721c2461f7dd30a84565abc350eca3 (patch) | |
tree | 89bb8aeaea4994f87861f60b97aa0bb833732ff1 /Doc/extending | |
parent | 21602183cea18c3222d04a4f9225c16421e286a2 (diff) | |
download | cpython-bb4e941c6d721c2461f7dd30a84565abc350eca3.zip cpython-bb4e941c6d721c2461f7dd30a84565abc350eca3.tar.gz cpython-bb4e941c6d721c2461f7dd30a84565abc350eca3.tar.bz2 |
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.
Diffstat (limited to 'Doc/extending')
-rw-r--r-- | Doc/extending/newtypes.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst index 376d09a..08a70a2 100644 --- a/Doc/extending/newtypes.rst +++ b/Doc/extending/newtypes.rst @@ -982,12 +982,12 @@ done. This can be done using the :c:func:`PyErr_Fetch` and } -Object Presentation -------------------- - .. index:: + single: string; object representation builtin: repr - builtin: str + +Object Presentation +------------------- 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` |