array of characters?
Gregory Ewing
greg.ewing at canterbury.ac.nz
Fri Mar 22 03:23:54 EDT 2019
Paul Rubin wrote:
> - array('u') works but it is deprecated, and (not sure) the doc page
> says the object size is 2 bytes, so it may only handle BMP characters
The docs actually say "Depending on the platform, it can be 16 bits or 32
bits".
With Python 3.5 on MacOSX, it seems to work and hold the full range of
unicode characters.
Not sure why this is being deprecated instead of just making it always
32 bits. I'll make some enquiries.
--
Greg
More information about the Python-list
mailing list