On Sat, 3 Jun 2023 at 07:28, David Mertz, Ph.D. <david.me...@gmail.com> wrote:
>
> Sure. That's fine. With a sufficiently long strings my code is faster, but 
> for "typical" strings yours will be.

Really? How? Your code has to build a set of every character in the
string; mine builds a set of every category in the string. Set
intersection won't be slower for a smaller set.

ChrisA
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/5C7WSPFDJ4A6LRHL67N7UFPXGU4KI56O/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to