[Python-Dev] range objects in 3.x

Ethan Furman ethan at stoneleaf.us
Tue Sep 27 21:22:20 CEST 2011


Guido van Rossum wrote:
> 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.

Well, actually, I'd be using it with dates.  ;)

~Ethan~


More information about the Python-Dev mailing list