[Python-ideas] Expose `itertools.count.start` and implement `itertools.count.__eq__` based on it, like `range`.
Ram Rachum
ram.rachum at gmail.com
Thu May 15 22:04:02 CEST 2014
Now that I think about it, I would ideally want `itertools.count` to be
deprecated in favor of `range(float('inf'))`, but I know that would never
happen.
On Thursday, May 15, 2014 11:02:56 PM UTC+3, Ram Rachum wrote:
>
> I suggest exposing `itertools.count.start` and implementing
> `itertools.count.__eq__` based on it. This'll provide the same benefits
> that `range` got by exposing `range.start` and allowing `range.__eq__`.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140515/3738d738/attachment.html>
More information about the Python-ideas
mailing list