[Python-ideas] string codes & substring equality

Stephen J. Turnbull stephen at xemacs.org
Thu Nov 28 07:58:21 CET 2013


Chris Angelico writes:

 > No, a character is simply an integer. How it's represented is
 > immaterial.

To be pedantic, in Python, not quite immaterial.  If you have the
Latin 1 subset, you could cast it to bytes and use bytes-oriented APIs
(eg, memoryview, bytearray) which would be faster in some cases.



More information about the Python-ideas mailing list