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/c-api/object.rst | |
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/c-api/object.rst')
-rw-r--r-- | Doc/c-api/object.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst index d895547..a47183c 100644 --- a/Doc/c-api/object.rst +++ b/Doc/c-api/object.rst @@ -160,10 +160,10 @@ Object Protocol a string similar to that returned by :c:func:`PyObject_Repr` in Python 2. Called by the :func:`ascii` built-in function. + .. index:: string; PyObject_Str (C function) -.. c:function:: PyObject* PyObject_Str(PyObject *o) - .. index:: builtin: str +.. c:function:: PyObject* PyObject_Str(PyObject *o) Compute a string representation of object *o*. Returns the string representation on success, *NULL* on failure. This is the equivalent of the |