]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-145202: Fix crash in unicodedata's GraphemeBreakIterator and Segment (GH-145216)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 26 Feb 2026 09:30:08 +0000 (11:30 +0200)
committerGitHub <noreply@github.com>
Thu, 26 Feb 2026 09:30:08 +0000 (11:30 +0200)
commit812ef66759f9fe27d68283d8e67d6cd3eb512be2
treeed144f13668305f52cee1ea3c1b448294a520e07
parent43fdb7037e76c18d9545ac11b2f1e3e398152ada
gh-145202: Fix crash in unicodedata's GraphemeBreakIterator and Segment (GH-145216)

Remove the tp_clear slots and make Segment members read-only.

Also add tests for reference loops involving GraphemeBreakIterator
and Segment.
Lib/test/test_unicodedata.py
Modules/unicodedata.c