Skip to content

gh-76535: Add PyUCS4_ToLower() function - #139333

Closed
vstinner wants to merge 19 commits into
python:mainfrom
vstinner:unicode_tolower2
Closed

vstinner wants to merge 19 commits into
python:mainfrom
vstinner:unicode_tolower2

Conversation

@vstinner

@vstinner vstinner commented Sep 25, 2025 •

Copy link
Copy Markdown
Member

Comment thread Tools/unicode/makeunicodedata.py Resolved
Comment thread Doc/whatsnew/3.15.rst
* The Unicode database has been updated to Unicode 17.0.0.


unicodedata

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this duplicated?

Comment thread Doc/c-api/unicode.rst Resolved
Comment thread Doc/c-api/unicode.rst Resolved
Comment thread Doc/c-api/unicode.rst Resolved
Comment thread Doc/c-api/unicode.rst Resolved
Comment thread Doc/c-api/unicode.rst Resolved
Comment thread Modules/_testcapi/unicode.c Resolved
Comment thread Doc/c-api/unicode.rst Resolved
Comment thread Doc/c-api/unicode.rst

*str_size*, *buf_size* and the result are number of UCS-4 characters.

In Unicode 16.0, any character can be lowercased into a buffer of *buf_size* ``2``.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this (specifying 16.0.0) may be confusing for readers since we compile UCD version 17.0 in unicodedata.

@vstinner

vstinner commented Oct 7, 2025

Copy link
Copy Markdown
Member Author

This API didn't get much traction. I prefer to abandon it. The API is being discussed at capi-workgroup/decisions#71.

@vstinner vstinner closed this Oct 7, 2025
@vstinner
vstinner deleted the unicode_tolower2 branch October 7, 2025 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants