[Python-ideas] Make len() usable on a generator
Alexander Belopolsky
alexander.belopolsky at gmail.com
Fri Oct 3 18:20:31 CEST 2014
On Fri, Oct 3, 2014 at 11:48 AM, Cathal Garvey <cathalgarvey at cathalgarvey.me
> wrote:
> Some builtin generators appear to do just this:
>
> In [10]: %timeit len(range(100))
>
Builtin range is not a generator.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20141003/821ec1bf/attachment.html>
More information about the Python-ideas
mailing list