Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3d5f98

Browse files
committed
Put str() in alphabetical order.
1 parent a4ce2f5 commit e3d5f98

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Doc/lib/libfuncs.tex

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,16 @@ \section{Built-in Functions \label{built-in-funcs}}
908908
\versionadded{2.2}
909909
\end{funcdesc}
910910

911+
\begin{funcdesc}{str}{\optional{object}}
912+
Return a string containing a nicely printable representation of an
913+
object. For strings, this returns the string itself. The
914+
difference with \code{repr(\var{object})} is that
915+
\code{str(\var{object})} does not always attempt to return a string
916+
that is acceptable to \function{eval()}; its goal is to return a
917+
printable string. If no argument is given, returns the empty
918+
string, \code{''}.
919+
\end{funcdesc}
920+
911921
\begin{funcdesc}{sum}{sequence\optional{, start}}
912922
Sums \var{start} and the items of a \var{sequence}, from left to
913923
right, and returns the total. \var{start} defaults to \code{0}.
@@ -936,16 +946,6 @@ \section{Built-in Functions \label{built-in-funcs}}
936946
\versionadded{2.2}
937947
\end{funcdesc}
938948

939-
\begin{funcdesc}{str}{\optional{object}}
940-
Return a string containing a nicely printable representation of an
941-
object. For strings, this returns the string itself. The
942-
difference with \code{repr(\var{object})} is that
943-
\code{str(\var{object})} does not always attempt to return a string
944-
that is acceptable to \function{eval()}; its goal is to return a
945-
printable string. If no argument is given, returns the empty
946-
string, \code{''}.
947-
\end{funcdesc}
948-
949949
\begin{funcdesc}{tuple}{\optional{sequence}}
950950
Return a tuple whose items are the same and in the same order as
951951
\var{sequence}'s items. \var{sequence} may be a sequence, a

0 commit comments

Comments
 (0)