Skip to content

gh-156289: Update Unicode to 18.0.0 - #156290

Closed
clin1234 wants to merge 2 commits into
python:mainfrom
clin1234:unicode18
Closed

gh-156289: Update Unicode to 18.0.0#156290
clin1234 wants to merge 2 commits into
python:mainfrom
clin1234:unicode18

Conversation

@clin1234

@clin1234 clin1234 commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Regenerate the Unicode tables with Tools/unicode/makeunicodedata.py and
bump UNIDATA_VERSION to 18.0.0:

  Modules/unicodedata_db.h
  Modules/unicodename_db.h
  Objects/unicodetype_db.h

Also update the UCD version references in the docs (stdtypes.rst,
unicodedata.rst, re.rst, lexical_analysis.rst) and the explanatory
comments in Lib/re/_properties.py, per the checklist at the top of
makeunicodedata.py.

TEMPORARY TODO: the two bidirectional-table asserts in
Tools/unicode/mkstringprep.py are commented:
Lib/stringprep.py must then be regenerated.
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34193671 | 📁 Comparing 6de6ffd against main (43a1869)

  🔍 Preview build  

4 files changed
± library/re.html
± library/stdtypes.html
± library/unicodedata.html
± reference/lexical_analysis.html

@picnixz picnixz closed this Aug 23, 2026
@picnixz

picnixz commented Aug 23, 2026

Copy link
Copy Markdown
Member

This is premature as it's still a draft: Unicode® 18.0.0 (DRAFT)

@clin1234

Copy link
Copy Markdown
Contributor Author

This is premature as it's still a draft: Unicode® 18.0.0 (DRAFT)

But given that the final release will be in mid-September, isn't it prudent to support it as soon as possibele?

@picnixz

picnixz commented Aug 23, 2026

Copy link
Copy Markdown
Member

Not necessarily. Better wait for the release rather than having a sitting PR.

@hugovk

hugovk commented Aug 23, 2026

Copy link
Copy Markdown
Member

See your https://discuss.python.org/t/allow-beta-ucd-files-to-be-used-in-the-future/106626 for a discussion on whether we should support pre-release Unicode versions: no consensus reached to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants