]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-116946: fully implement GC protocol for `_curses_panel.panel` (GH-138333...
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sat, 6 Sep 2025 10:17:57 +0000 (12:17 +0200)
committerGitHub <noreply@github.com>
Sat, 6 Sep 2025 10:17:57 +0000 (12:17 +0200)
commitafec2c70eb5828b9af32f36e743a1ce6f90d1711
treec0b59d036fa80332b43f6796fd4b81a40cf671b2
parente7bb98a1739ae5ccd703d9553ddd85a7ec2eeae2
[3.13] gh-116946: fully implement GC protocol for `_curses_panel.panel` (GH-138333) (#138428)

[3.14] gh-116946: fully implement GC protocol for `_curses_panel.panel` (GH-138333)

This commit fixes possible reference loops via `panel.set_userptr`
by implementing `tp_clear` and `tp_traverse` for panel objects.
(cherry picked from commit 572df47840d910b9fc9cd951074232ae89442be1)
Modules/_curses_panel.c