mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Put str() in alphabetical order.
This commit is contained in:
parent
a4ce2f5116
commit
e3d5f98180
1 changed files with 10 additions and 10 deletions
|
@ -908,6 +908,16 @@ class C:
|
|||
\versionadded{2.2}
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{str}{\optional{object}}
|
||||
Return a string containing a nicely printable representation of an
|
||||
object. For strings, this returns the string itself. The
|
||||
difference with \code{repr(\var{object})} is that
|
||||
\code{str(\var{object})} does not always attempt to return a string
|
||||
that is acceptable to \function{eval()}; its goal is to return a
|
||||
printable string. If no argument is given, returns the empty
|
||||
string, \code{''}.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{sum}{sequence\optional{, start}}
|
||||
Sums \var{start} and the items of a \var{sequence}, from left to
|
||||
right, and returns the total. \var{start} defaults to \code{0}.
|
||||
|
@ -936,16 +946,6 @@ class C(B):
|
|||
\versionadded{2.2}
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{str}{\optional{object}}
|
||||
Return a string containing a nicely printable representation of an
|
||||
object. For strings, this returns the string itself. The
|
||||
difference with \code{repr(\var{object})} is that
|
||||
\code{str(\var{object})} does not always attempt to return a string
|
||||
that is acceptable to \function{eval()}; its goal is to return a
|
||||
printable string. If no argument is given, returns the empty
|
||||
string, \code{''}.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{tuple}{\optional{sequence}}
|
||||
Return a tuple whose items are the same and in the same order as
|
||||
\var{sequence}'s items. \var{sequence} may be a sequence, a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue