Message270587
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>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2016-07-16 22:15:52 | James.Lu | set | recipients:
+ James.Lu, r.david.murray |
2016-07-16 22:15:52 | James.Lu | link | issue27532 messages |
2016-07-16 22:15:52 | James.Lu | create | |
|