Author James.Lu
Recipients James.Lu, r.david.murray
Date 2016-07-16.22:15:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CANQHGB3QjxeCDuYTqthgP4yNPO=62ZmyXZJ=A587W3kXL-r0tg@mail.gmail.com>
In-reply-to <1468704263.9.0.207659399196.issue27532@psf.upfronthosting.co.za>
Content
I think you closed it too quickly. You see, computing the length of
combinations() doesn't require looping all the way through the iterator;
you can compute it quickly. I created a wrapper class just for this purpose.

On Sat, Jul 16, 2016 at 5:24 PM, R. David Murray <report@bugs.python.org>
wrote:

>
> R. David Murray added the comment:
>
> If you read issue 24849, you will see that iterators having len was
> rejected by Guido long ago.
>
> ----------
> nosy: +r.david.murray
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue27532>
> _______________________________________
>
History
Date User Action Args
2016-07-16 22:15:52James.Lusetrecipients: + James.Lu, r.david.murray
2016-07-16 22:15:52James.Lulinkissue27532 messages
2016-07-16 22:15:52James.Lucreate