On 10/7/2018 12:32 AM, Ram Rachum wrote:

Does that mean I'll have to write that character-by-character algorithm?

I would not be surprised if you could make use of str.index, which scans at C speed. See my answer to Nathaniel.


--
Terry Jan Reedy

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to