Is there a specific reason the numpy function arange
was named so?
People habitually make the typo arrange
, assuming it is spelled as the English word, so the choice seems like something of an oversight given that other less ambiguously spelled options (range
etc) are unused by numpy.
Was it chosen as a portmanteau of array and range?
range
when importing numpy with * would a nuisance.sum
andmin
are shadowed, but with fewer issues. For example,for i in range(10):
is preferable tofor i in arange(10):
. – Eboni