[Python-Dev] range objects in 3.x
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Sep 28 13:06:34 CEST 2011
Ethan Furman wrote:
> Well, actually, I'd be using it with dates. ;)
Seems to me that one size isn't going to fit all.
Maybe we really want two functions:
interpolate(start, end, count)
Requires a type supporting addition and division,
designed to work predictably and accurately with
floats
extrapolate(start, step, end)
Works for any type supporting addition, not
recommended for floats
--
Greg
More information about the Python-Dev
mailing list