Repository navigation
Implement Unicode 17 grapheme iteration and properties #9145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
youknowone
merged 9 commits into
RustPython:main
from
youknowdot:split/unicode-graphemes-final
Oct 16, 2026
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2b0ed2b
Implement native Unicode 17 grapheme iteration
youknowdot 695e0d4
Bind grapheme Segment methods to the Python object
youknowdot c16f5e1
Use explicit object receivers for Segment descriptors
youknowdot 1f0116d
Mark grapheme property lookups as must-use
youknowdot 81470d0
Enable validated Unicode grapheme canonical tests
youknowdot 85647ab
Accept platform line endings in grapheme oracle header
youknowdot 08cc0b6
Keep grapheme property regression in test module
youknowdot 52a10cf
Qualify grapheme iterator return type for generated bindings
youknowdot 07e76cd
Fix deprecated PyO3 code input import in benchmarks
youknowdot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the default
ucd_3_2_0feature enabled, these APIs are registered only as module-level#[pyfunction]s; no corresponding methods are added toUcd.Unicode_3_2_0_FunctionsTestsetsdb = unicodedata.ucd_3_2_0and inherits the four newly unmarked tests fromBaseUnicodeFunctionsTest, so those tests now raiseAttributeErrorwhen they accessself.db.grapheme_cluster_break, the other properties, oriter_graphemes, making the standardtest_unicodedatasuite fail and leaving the CPython UCD API incomplete. Add the methods toUcdor retain expected-failure markers until they work.AGENTS.md reference: AGENTS.md:L279-L282
Useful? React with 👍 / 👎.