Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libarray.tex @ 11075:36e258b57750 legacy-trunk
byteswap() method: Tell *what* exception gets raised when the type
cannot be byteswapped.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Tue, 29 Jun 1999 15:58:00 +0000 |
| parents | bebe9830b33c |
| children | e82e82b3b9ad |
line wrap: on
line diff
--- a/Doc/lib/libarray.tex Tue Jun 29 15:53:52 1999 +0000 +++ b/Doc/lib/libarray.tex Tue Jun 29 15:58:00 1999 +0000 @@ -78,8 +78,9 @@ \begin{methoddesc}[array]{byteswap}{x} ``Byteswap'' all items of the array. This is only supported for -integer values. It is useful when reading data from a file written -on a machine with a different byte order. +integer values; for other types of values, \exception{RuntimeError} is +raised. It is useful when reading data from a file written on a +machine with a different byte order. \end{methoddesc} \begin{methoddesc}[array]{fromfile}{f, n}
