This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mital Ashok
Recipients Mital Ashok
Date 2022-01-29.19:14:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643483665.61.0.972027795667.issue46574@roundup.psfhosted.org>
In-reply-to
Content
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)
History
Date User Action Args
2022-01-29 19:14:26Mital Ashoksetrecipients: + Mital Ashok
2022-01-29 19:14:25Mital Ashoksetmessageid: <1643483665.61.0.972027795667.issue46574@roundup.psfhosted.org>
2022-01-29 19:14:25Mital Ashoklinkissue46574 messages
2022-01-29 19:14:25Mital Ashokcreate