[Python-ideas] Float range class

Ethan Furman ethan at stoneleaf.us
Fri Jan 9 04:50:44 CET 2015


On 01/08/2015 07:19 PM, Ethan Furman wrote:

> For more flexibility, an epsilon keyword argument is available, and step can be a function:
> 
>   range([start,] stop [,step] [,count] [,epsilon])

On second and third thought, having step be a function makes implementing __len__, __index__, find, etc., etc., either
impossible or expensive, so nevermind that part.  ;)

--
~Ethan~

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150108/851df18c/attachment.sig>


More information about the Python-ideas mailing list