On Sat, 3 Jun 2023 at 07:28, David Mertz, Ph.D. <[email protected]> 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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/5C7WSPFDJ4A6LRHL67N7UFPXGU4KI56O/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to