A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-September/113685.html below:

[Python-Dev] range objects in 3.x

[Python-Dev] range objects in 3.xGuido van Rossum guido at python.org
Tue Sep 27 19:03:38 CEST 2011
On Tue, Sep 27, 2011 at 9:16 AM, Alexander Belopolsky
<alexander.belopolsky at gmail.com> wrote:
> On Tue, Sep 27, 2011 at 11:44 AM, Raymond Hettinger
> <raymond.hettinger at gmail.com> wrote:
> ..
>> In the math module, we used an f prefix to differentiate math.fsum() from the built-in sum() function.  That suggests frange() as a possible name for a variant of range() that creates floats.
>>
>> That works reasonably well if the default argument pattern is the same as range:   frange(10.0, 20.0, 0.5)
>
> +1 on adding frange() to math module or to the recently contemplated
> stats module.   For something that aspires to becoming a builtin one
> day, I would like to see something not focused on floats exclusively
> and something with a proper English name.

Um, I think you better read the thread. :-) I successfully argued that
mimicking the behavior of range() for floats is a bad idea, and that
we need to come up with a name for an API that takes start/stop/count
arguments instead of start/stop/step.

-- 
--Guido van Rossum (python.org/~guido)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4