Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libarray.tex @ 12223:e82e82b3b9ad legacy-trunk
Merged changes from the 1.5.2p2 release.
(Very rough.)
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Mon, 03 Apr 2000 20:13:55 +0000 |
| parents | 36e258b57750 |
| children | eea51275acbf |
line wrap: on
line diff
--- a/Doc/lib/libarray.tex Mon Apr 03 15:42:13 2000 +0000 +++ b/Doc/lib/libarray.tex Mon Apr 03 20:13:55 2000 +0000 @@ -76,11 +76,11 @@ operations are applied to it. \end{methoddesc} -\begin{methoddesc}[array]{byteswap}{x} +\begin{methoddesc}[array]{byteswap}{} ``Byteswap'' all items of the array. This is only supported for -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. +values which are 1, 2, 4, or 8 bytes in size; 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} @@ -150,7 +150,8 @@ string if the \var{typecode} is \code{'c'}, otherwise it is a list of numbers. The string is guaranteed to be able to be converted back to an array with the same type and value using reverse quotes -(\code{``}). Examples: +(\code{``}), so long as the \function{array()} function has been +imported using \samp{from array import array}. Examples: \begin{verbatim} array('l') @@ -163,4 +164,10 @@ \begin{seealso} \seemodule{struct}{packing and unpacking of heterogeneous binary data} \seemodule{xdrlib}{packing and unpacking of XDR data} + \seetext{The Numeric Python extension (NumPy) defines another array + type; see \emph{The Numerical Python Manual} for additional + information (available online at + \url{ftp://ftp-icf.llnl.gov/pub/python/numericalpython.pdf}). + Further information about NumPy is available at + \url{http://www.python.org/topics/scicomp/numpy.html}.} \end{seealso}
