This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients docs@python, ncoghlan
Date 2014-06-05.11:02:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401966142.97.0.682653322291.issue21667@psf.upfronthosting.co.za>
In-reply-to
Content
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."
History
Date User Action Args
2014-06-05 11:02:23ncoghlansetrecipients: + ncoghlan, docs@python
2014-06-05 11:02:22ncoghlansetmessageid: <1401966142.97.0.682653322291.issue21667@psf.upfronthosting.co.za>
2014-06-05 11:02:22ncoghlanlinkissue21667 messages
2014-06-05 11:02:22ncoghlancreate