Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libarray.tex @ 37064:64c83e0f683e legacy-trunk
More \exception fixes.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Fri, 17 Mar 2006 16:26:31 +0000 |
| parents | 016d7016c6c6 |
| children |
line wrap: on
line diff
--- a/Doc/lib/libarray.tex Fri Mar 17 15:56:41 2006 +0000 +++ b/Doc/lib/libarray.tex Fri Mar 17 16:26:31 2006 +0000 @@ -139,8 +139,8 @@ \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 @@ \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}
