FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-159739: Collect grapheme iterator and segment type cycles by jelle-openai · Pull Request #159975 · python/cpython · GitHub

Repository navigation

gh-159739: Collect grapheme iterator and segment type cycles - #159975

Merged
JelleZijlstra merged 1 commit into
python:mainfrom
jelle-openai:jelle/codex/gh-159739-grapheme-type-cycles
Oct 21, 2026
Merged

JelleZijlstra merged 1 commit into
python:mainfrom
jelle-openai:jelle/codex/gh-159739-grapheme-type-cycles

Conversation

jelle-openai commented Oct 20, 2026 •
edited
Loading

Copy link
Copy Markdown
Contributor

Collect grapheme iterator and segment type cycles. Grapheme iterators returned by unicodedata.iter_graphemes() and the segment objects they yield do not report their references to their heap types during GC traversal. If an instance participates in a cycle through its type and the unicodedata module, the collector cannot identify the cycle as unreachable, so the module and related objects can remain alive.

Backport to 3.15.

JelleZijlstra added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Oct 20, 2026
JelleZijlstra merged commit 990bcd9 into python:main Oct 21, 2026
63 checks passed

Copy link
Copy Markdown

Thanks @jelle-openai for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

Copy link
Copy Markdown

Sorry, @jelle-openai and @JelleZijlstra, I could not cleanly backport this to 3.14 due to a conflict.

Please backport manually with cherry_picker, see the devguide for more information.

cherry_picker 990bcd9abdd1063dc90d8f182b6f85b1d8149bb8 3.14

bedevere-app Bot commented Oct 21, 2026

Copy link
Copy Markdown

GH-160013 is a backport of this pull request to the 3.15 branch.

bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Oct 21, 2026
JelleZijlstra removed the needs backport to 3.14 bugs and security fixes label Oct 21, 2026
JelleZijlstra pushed a commit that referenced this pull request Oct 21, 2026
…H-159975) (#160013)

(cherry picked from commit 990bcd9)

Co-authored-by: Jelle Zijlstra <jelle@openai.com>
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
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.

2 participants


Back | FazBrowse Home | New Git URL