Message412095
There's no reason that `count('', 'a')` for `'', 'a', 'aa', ...` or `count((), (1,))` for `(), (1,), (1, 1), ...` shouldn't work.
count(a, b) should be equivalent to accumulate(chain((a,), repeat(b)))
The docs don't strongly suggest that it won't work (it says *start* is a number, but the "roughly equivalent to" generator would work for str/tuple/etc) |
|
Date |
User |
Action |
Args |
2022-01-29 19:14:26 | Mital Ashok | set | recipients:
+ Mital Ashok |
2022-01-29 19:14:25 | Mital Ashok | set | messageid: <1643483665.61.0.972027795667.issue46574@roundup.psfhosted.org> |
2022-01-29 19:14:25 | Mital Ashok | link | issue46574 messages |
2022-01-29 19:14:25 | Mital Ashok | create | |
|