diff options
author | Fred Drake <fdrake@acm.org> | 2000-04-03 20:13:55 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-04-03 20:13:55 (GMT) |
commit | 38e5d27caee56b6958e0034e342abb48e6100390 (patch) | |
tree | 6a0c853da853123dd2e628e8ec187517250c2530 /Doc/lib/libarray.tex | |
parent | 659ebfa79e891fc5e2480cd66c157970df57c451 (diff) | |
download | cpython-38e5d27caee56b6958e0034e342abb48e6100390.zip cpython-38e5d27caee56b6958e0034e342abb48e6100390.tar.gz cpython-38e5d27caee56b6958e0034e342abb48e6100390.tar.bz2 |
Merged changes from the 1.5.2p2 release.
(Very rough.)
Diffstat (limited to 'Doc/lib/libarray.tex')
-rw-r--r-- | Doc/lib/libarray.tex | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/Doc/lib/libarray.tex b/Doc/lib/libarray.tex index 84b2812..0e1a411 100644 --- a/Doc/lib/libarray.tex +++ b/Doc/lib/libarray.tex @@ -76,11 +76,11 @@ numbers are valid as long as the array exists and no length-changing 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 @@ represented as \code{array(\var{typecode}, \var{initializer})}. The 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 @@ array('d', [1.0, 2.0, 3.14]) \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} |