python has a flexible unicode object #2

Closed
opened 2024-08-30 17:12:39 +02:00 by zbyszek · 1 comment
Owner

https://docs.python.org/3.14/c-api/unicode.html

Unicode objects internally use a variety of representations, in order to allow handling the complete range of Unicode characters while staying memory efficient. There are special cases for strings where all code points are below 128, 256, or 65536; otherwise, code points must be below 1114112 (which is the full Unicode range).

UTF-8 representation is created on demand and cached in the Unicode object.

https://peps.python.org/pep-0393/

https://docs.python.org/3.14/c-api/unicode.html > Unicode objects internally use a variety of representations, in order to allow handling the complete range of Unicode characters while staying memory efficient. There are special cases for strings where all code points are below 128, 256, or 65536; otherwise, code points must be below 1114112 (which is the full Unicode range). > UTF-8 representation is created on demand and cached in the Unicode object. https://peps.python.org/pep-0393/
Owner

thanks, added corresponding note in the lecture materials

thanks, added corresponding note in the lecture materials
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ASPP/2024-heraklion-comp-arch#2
No description provided.