summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-12-07 11:24:03 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-12-07 11:24:03 (GMT)
commite3d5f98180c62db4ecb1ba8ad3277b40d3ec9775 (patch)
treed49474a37722607fe256ec69b630b42872212f8f
parenta4ce2f511689ecd74c2766584fc9cfd292c35ebf (diff)
downloadcpython-e3d5f98180c62db4ecb1ba8ad3277b40d3ec9775.zip
cpython-e3d5f98180c62db4ecb1ba8ad3277b40d3ec9775.tar.gz
cpython-e3d5f98180c62db4ecb1ba8ad3277b40d3ec9775.tar.bz2
Put str() in alphabetical order.
-rw-r--r--Doc/lib/libfuncs.tex20
1 files changed, 10 insertions, 10 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index d53ff24..dc9f344 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -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