2 Answers 2
NumPy derives from an older python library called Numeric (in fact, the first array object built for python). The arange function dates back to this library, and its etymology is detailed in its manual:
arrayrange()
The
arrayrange()function is similar to therange()function in Python, except that it returns an array as opposed to a list....
arange()is a shorthand forarrayrange().
Tellingly, there is another example with array(range(25)) (p.16), which is functionally the same as arrayrange().
34k27 gold badges106 silver badges158 bronze badges
It is explicitly modelled on the Python range function. The precedent for prefixing a was that in Python 1 there was already a variant of range called xrange.
4 Comments
@hpaulj, Looking at python.org/doc/versions, it seems to have been added in python2.0, in October 2000.

