[Python-Dev] range objects in 3.x

Guido van Rossum guido at python.org
Tue Sep 27 20:36:08 CEST 2011


On Tue, Sep 27, 2011 at 11:20 AM, Ethan Furman <ethan at stoneleaf.us> wrote:
>I personally would use the step value far more often than the count
> value.

But that's exactly what we don't *want* you to do! Because (unless you
are a numerical wizard) you probably aren't doing the error analysis
needed to avoid the "unexpected extra point" problem due to floating
point inaccuracies. For your own good, we want you to state the count
and let us deliver the number of points you want.

-- 
--Guido van Rossum (python.org/~guido)


More information about the Python-Dev mailing list