Eric V. Smith <e...@trueblade.com> added the comment:

> 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)

----------
nosy: +eric.smith

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41377>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to