Message219793
Based on the recent python-dev thread, I propose the following "CPython implementation detail" note in the "Strings" entry of https://docs.python.org/3/reference/datamodel.html#objects-values-and-types
"CPython currently guarantees O(1) access to arbitrary code points when indexing and slicing a string. Python implementations are required to index and slice strings as arrays of code points, but are not required to guarantee O(1) access to arbitrary locations within the string. This allows implementations to use variable width encodings for their internal string representation." |
|
Date |
User |
Action |
Args |
2014-06-05 11:02:23 | ncoghlan | set | recipients:
+ ncoghlan, docs@python |
2014-06-05 11:02:22 | ncoghlan | set | messageid: <1401966142.97.0.682653322291.issue21667@psf.upfronthosting.co.za> |
2014-06-05 11:02:22 | ncoghlan | link | issue21667 messages |
2014-06-05 11:02:22 | ncoghlan | create | |
|