[issue9547] iterator length

Raymond Hettinger report at bugs.python.org
Mon Aug 9 20:04:44 CEST 2010


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

This has been rejected before.  The core issue is that it is not a very useful operation because it consumes the iterator.   

Also, this isn't an operation worth optimizing because most iterators that do something interesting are already slower than a genexp inside a sum().

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9547>
_______________________________________


More information about the Python-bugs-list mailing list