[issue27532] Dictionary iterator has no len()

2016-07-16 Thread R. David Murray
R. David Murray added the comment: Please read the referenced issue. Your points are addressed there. -- ___ Python tracker ___ ___ P

[issue27532] Dictionary iterator has no len()

2016-07-16 Thread James Lu
James Lu added the comment: 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

[issue27532] Dictionary iterator has no len()

2016-07-16 Thread R. David Murray
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 __

[issue27532] Dictionary iterator has no len()

2016-07-16 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: -> resolved superseder: -> Add __len__ to map, everything in itertools ___ Python tracker ___ _

[issue27532] Dictionary iterator has no len()

2016-07-16 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue27532] Dictionary iterator has no len()

2016-07-16 Thread James Lu
James Lu added the comment: same for itertools iterators - libraries such as tqdm would benefit from this On Sat, Jul 16, 2016 at 3:08 PM, James Lu wrote: > > New submission from James Lu: > > This would be useful for libraries like tqdm (progress bar module). > > -- > components: Int

[issue27532] Dictionary iterator has no len()

2016-07-16 Thread James Lu
New submission from James Lu: This would be useful for libraries like tqdm (progress bar module). -- components: Interpreter Core messages: 270581 nosy: James.Lu priority: normal severity: normal status: open title: Dictionary iterator has no len() type: enhancement versions: Python 3.6