March 2003
Intermediate to advanced
656 pages
39h 30m
English
arrayrange, arange
arrayrange([start,]stop[,step=1],typecode=None)
Like
array(range(
start,stop,step
),typecode
),
but faster. See built-in function range, covered
in Chapter 8, for details about
start, stop,
and step. arrayrange
allows float values for these arguments, not just
int values. Be careful when exploiting this
feature, since the approximations inherent in floating-point
arithmetic may lead to a result with one more or fewer items than you
might expect. arange is a synonym of
arrayrange.
Read now
Unlock full access