summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libarray.tex
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-03-17 16:26:31 (GMT)
committerGeorg Brandl <georg@python.org>2006-03-17 16:26:31 (GMT)
commitdb815abc70a20f81c9de1c99b9089944c802c715 (patch)
tree4fe27086334262c4177877d4401c40d16975a2e6 /Doc/lib/libarray.tex
parentda37604ee32cdefbb0184b7f34c97cf1aa1ec3cf (diff)
downloadcpython-db815abc70a20f81c9de1c99b9089944c802c715.zip
cpython-db815abc70a20f81c9de1c99b9089944c802c715.tar.gz
cpython-db815abc70a20f81c9de1c99b9089944c802c715.tar.bz2
More \exception fixes.
Diffstat (limited to 'Doc/lib/libarray.tex')
-rw-r--r--Doc/lib/libarray.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/lib/libarray.tex b/Doc/lib/libarray.tex
index 897310d..eaf5888 100644
--- a/Doc/lib/libarray.tex
+++ b/Doc/lib/libarray.tex
@@ -139,8 +139,8 @@ file using the \method{fromfile()} method).
\end{methoddesc}
\begin{methoddesc}[array]{fromunicode}{s}
-Extends this array with data from the given unicode string.
-The array must be a type 'u' array; otherwise a ValueError
+Extends this array with data from the given unicode string. The array
+must be a type \code{'u'} array; otherwise a \exception{ValueError}
is raised. Use \samp{array.fromstring(ustr.decode(enc))} to
append Unicode data to an array of some other type.
\end{methoddesc}
@@ -197,8 +197,8 @@ be written to a file by the \method{tofile()} method.)
\begin{methoddesc}[array]{tounicode}{}
Convert the array to a unicode string. The array must be
-a type 'u' array; otherwise a ValueError is raised. Use
-array.tostring().decode(enc) to obtain a unicode string
+a type \code{'u'} array; otherwise a \exception{ValueError} is raised.
+Use \samp{array.tostring().decode(enc)} to obtain a unicode string
from an array of some other type.
\end{methoddesc}