3 ms·
As of Python 3.3, unicode string indexing in Python is a constant time operation. http://www.python.org/dev/peps/pep-0393/ http://www.python.org/dev/peps/pep-03
by bskap 14y ago
As of Python 3.3, unicode string indexing in Python is a constant time operation. http://www.python.org/dev/peps/pep-0393/ http://www.python.org/dev/peps/pep-0393/
- dalke 14y agoUnicode string indexing has always been constant time. On UCS-2 builds, the index might have returned the wrong thing, compared to what a UCS-4 build would have returned.