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 eric.smith
Recipients eric.smith, jakirkham
Date 2020-07-23.21:51:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595541081.43.0.376554868386.issue41377@roundup.psfhosted.org>
In-reply-to
Content
> AIUI (though I could be misunderstanding things) `str` objects do use some kind of typed array of unicode characters (either 16-bit narrow or 32-bit wide). 

It's somewhat more complicated. The string data is stored differently depending on the maximum code point in the string. See PEP 393.

The "kind" field describes this as:
1 byte (Latin-1)
2 byte (UCS-2)
4 byte (UCS-4)
History
Date User Action Args
2020-07-23 21:51:21eric.smithsetrecipients: + eric.smith, jakirkham
2020-07-23 21:51:21eric.smithsetmessageid: <1595541081.43.0.376554868386.issue41377@roundup.psfhosted.org>
2020-07-23 21:51:21eric.smithlinkissue41377 messages
2020-07-23 21:51:21eric.smithcreate