[Python-ideas] __len__() for map()
danish bluecheese
danish.bluecheese at gmail.com
Mon Nov 26 18:08:40 EST 2018
>
>
> On Mon, Nov 26, 2018 at 10:14:58PM +0000, Jonathan Fine wrote:
>
> > Briefly, I don't like your suggestion because many important iterables
> > don't have a length!
>
> But many important iterables do.
>
I agree many important iterables do have.
On Mon, Nov 26, 2018 at 02:06:52PM -0800, Michael Selik wrote:
> If you know the input is sizeable, why not check its length instead of the
> map's?
The consumer of map may not be the producer of map.
Very good point.
Honestly, i like the proposal but love to see more reviews on the idea.
Maybe i am missing something.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20181126/86f4df10/attachment.html>
More information about the Python-ideas
mailing list