Feature or enhancement
Proposal:
It would be nice if enumerate could expose the underlying len(iterable).
assert len(range(9)) == len(enumerate(range(9)))
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
As per tqdm#1185, there are 200k+ scripts using tqdm(enumerate(...)) on GitHub which would benefit from transparent len().
Somewhat related: #145361 and tqdm.contrib.itertools
/CC @KowalskiThomas @cmaloney @rhettinger
Feature or enhancement
Proposal:
It would be nice if
enumeratecould expose the underlyinglen(iterable).Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
As per tqdm#1185, there are 200k+ scripts using
tqdm(enumerate(...))on GitHub which would benefit from transparentlen().Somewhat related: #145361 and tqdm.contrib.itertools
/CC @KowalskiThomas @cmaloney @rhettinger