]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
byteswap() method: Tell *what* exception gets raised when the type
authorFred Drake <fdrake@acm.org>
Tue, 29 Jun 1999 15:58:00 +0000 (15:58 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 29 Jun 1999 15:58:00 +0000 (15:58 +0000)
    cannot be byteswapped.

Doc/lib/libarray.tex

index cfc9ceca518e7463aa89bd5a14f4c800f26e7b52..84b28128d0749cc6541f2daaf0a0e6d99d24abde 100644 (file)
@@ -78,8 +78,9 @@ operations are applied to it.
 
 \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}