[Python-ideas] Float range class
abarnert at yahoo.com
Mon Jan 12 23:51:26 CET 2015
Sorry, hit Send accidentally.
The ActiveState recipe referenced is #579000; it's the same as the class I posted on GitHub, but with only the NumPy implementation, rather than both that and Guido's version. It also links to the two earlier recipes I could find, and to NumPy docs and code, and the discussion section covers (I hope) all the caveats and bikeshedding issues that came up in this thread; the goal is that anyone following a link from the docs will find everything they might need to know about.
Sent from a random iPhone
On Jan 12, 2015, at 14:44, Andrew Barnert <abarnert at yahoo.com.dmarc.invalid> wrote:
> On Jan 10, 2015, at 13:48, Ethan Furman <ethan at stoneleaf.us> wrote:
>> On 01/10/2015 11:50 AM, Guido van Rossum wrote:
>>> I suppose the briefest of recipes could go in the range() docs, in a section "what do do for floats". More extended
>>> recipes should probably go on the activestate recipes site.
>> The range docs do seem to be the obvious place for range recipes.
> I've created issue #23226, with a patch (the whole thing fits into one paragraph and a short example, so I didn't think a subsection was necessary, but that can easily be changed), and a link to a new ActiveState recipe ( that contains the same simple class that turns the NumPy algorithm into a lazy sequence.
> Python-ideas mailing list
> Python-ideas at python.org
> Code of Conduct: http://python.org/psf/codeofconduct/
More information about the Python-ideas