mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
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:
parent
21602183ce
commit
bb4e941c6d
6 changed files with 79 additions and 57 deletions
|
|
@ -160,11 +160,11 @@ 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
|
||||
|
||||
Compute a string representation of object *o*. Returns the string
|
||||
representation on success, *NULL* on failure. This is the equivalent of the
|
||||
Python expression ``str(o)``. Called by the :func:`str` built-in function
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue