(iterable)
| 448 | # Handle iterators that do not define __len__(). |
| 449 | n = 0 |
| 450 | def count(iterable): |
| 451 | nonlocal n |
| 452 | for n, x in enumerate(iterable, start=1): |
| 453 | yield x |
| 454 | data = count(data) |
| 455 | if weights is None: |
| 456 | total = fsum(data) |
no test coverage detected