Raymond Hettinger <[email protected]> added the comment:
Thanks for the suggestion but I'm going to decline.
* The need for this is very low.
* It's easy to roll your own.
* The code for `count('', 'a')` and `count((), (1,))` isn't intelligible.
* Without special casing, the code for `count('', 'a')` and `count((), (1,))`
is highly inefficient. We advise people not to use the 's = s + t' pattern in
a loop for sequences because it leads to quadratic behavior.
----------
assignee: -> rhettinger
nosy: +rhettinger
resolution: -> rejected
stage: patch review -> resolved
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue46574>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com