Kaydet (Commit) ac00c4c1 authored tarafından Fred Drake's avatar Fred Drake

byteswap() method: Tell *what* exception gets raised when the type

		    cannot be byteswapped.
üst 9118f7cf
...@@ -78,8 +78,9 @@ operations are applied to it. ...@@ -78,8 +78,9 @@ operations are applied to it.
\begin{methoddesc}[array]{byteswap}{x} \begin{methoddesc}[array]{byteswap}{x}
``Byteswap'' all items of the array. This is only supported for ``Byteswap'' all items of the array. This is only supported for
integer values. It is useful when reading data from a file written integer values; for other types of values, \exception{RuntimeError} is
on a machine with a different byte order. raised. It is useful when reading data from a file written on a
machine with a different byte order.
\end{methoddesc} \end{methoddesc}
\begin{methoddesc}[array]{fromfile}{f, n} \begin{methoddesc}[array]{fromfile}{f, n}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment