GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [3.14] gh-74902: Add Unicode Grapheme Cluster Break algorithm (GH-143076) by StanFromIreland · Pull Request #148247 · python/cpython

Conversation

@StanFromIreland

@StanFromIreland StanFromIreland commented Apr 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Add the unicodedata._iter_graphemes() function to iterate over grapheme clusters according to rules defined in Unicode Standard Annex #29.

Add unicodedata._grapheme_cluster_break(), unicodedata._indic_conjunct_break() and unicodedata._extended_pictographic() functions to get the properties of the character which are related to the above algorithm.

(cherry picked from commits bab1d7a, 85013d7 and 58ccf21)

  • Issue: Add unicode grapheme cluster break algorithm #74902

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
serhiy-storchaka and others added 3 commits April 8, 2026 13:21
@serhiy-storchaka @Vermeille @StanFromIreland
[3.14] pythongh-74902: Add Unicode Grapheme Cluster Break algorithm (p…
f413b87
…ythonGH-143076)

Add the unicodedata.iter_graphemes() function to iterate over grapheme
clusters according to rules defined in Unicode Standard Annex #29.

Add unicodedata.grapheme_cluster_break(), unicodedata.indic_conjunct_break()
and unicodedata.extended_pictographic() functions to get the properties
of the character which are related to the above algorithm.
(cherry picked from commit bab1d7a)

Co-authored-by: Serhiy Storchaka <[email protected]>
Co-authored-by: Guillaume "Vermeille" Sanchez <[email protected]>
@serhiy-storchaka @StanFromIreland
Fix refleaks in new unicodedata classes added in pythongh-74902 (pyth…
a4665b5
…onGH-143843)
@zware @StanFromIreland
pythongh-74902: Avoid hitting unicode.org for test data (pythonGH-144195
9efe825
)

Use our own pythontest.net instead.
@bedevere-app bedevere-app Bot mentioned this pull request Apr 8, 2026
gh-74902: Add Unicode Grapheme Cluster Break algorithm #143076
Merged
@StanFromIreland StanFromIreland added the DO-NOT-MERGE label Apr 8, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Apr 8, 2026
Add unicode grapheme cluster break algorithm #74902
Closed
@StanFromIreland StanFromIreland added the skip news label Apr 8, 2026
@StanFromIreland StanFromIreland mentioned this pull request Apr 8, 2026
gh-130273: Add pure Python implementation of unicodedata.iter_graphemes() #148218
Closed
@StanFromIreland

StanFromIreland commented Apr 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

This is an alternative proposal for #148218.

This would also require updating testpython.net with the file for UCD 16. Due to this, the network test currently fails.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vstinner

vstinner commented Apr 8, 2026

Copy link
Copy Markdown
Member

I don't think that it's a good idea to backport so much code in a stable branch. I don't think that fixing the issue in Python 3.14 is important enough to justify this backport. Python had this bug for many years.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented May 9, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label May 9, 2026
@StanFromIreland StanFromIreland closed this May 12, 2026
@StanFromIreland
StanFromIreland deleted the backport-bab1d7a-3.14 branch May 12, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

DO-NOT-MERGE skip news stale Stale PR or inactive for long period of time.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@StanFromIreland @vstinner @serhiy-storchaka @zware
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.