[Python-Dev] range objects in 3.x (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 27 23:16:12 CEST 2011


Alexander Belopolsky wrote:

I don't think we'll gain anything by copying numpy code because linspace(start, stop, num) is effectively just

arange(0, num) * step + start

I don't think the intention was to literally copy the code, but to investigate borrowing the algorithm, in case it was using some special technique to maximise numerical accuracy.

But from this it seems like it's just using the naive algorithm that we've already decided is not the best.

-- Greg



More information about the Python-Dev mailing list