]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-116946: add `Py_TPFLAGS_IMMUTABLETYPE` to several internal types (#138582)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Thu, 11 Sep 2025 07:56:20 +0000 (09:56 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Sep 2025 07:56:20 +0000 (09:56 +0200)
commit4978bfca1033358504c7a4ebbe33f0c28bededf7
treeda2d2fb32b3ab5b5b441829714181063edc0b1ec
parent859aecc33b82f45e5b7ae30138d28f2a2f33a575
gh-116946: add `Py_TPFLAGS_IMMUTABLETYPE` to several internal types (#138582)

The following types are now immutable:

* `_curses_panel.panel`,
* `[posix,nt].ScandirIterator`, `[posix,nt].DirEntry` (exposed in `os.py`),
* `_remote_debugging.RemoteUnwinder`,
* `_tkinter.Tcl_Obj`, `_tkinter.tkapp`, `_tkinter.tktimertoken`,
* `zlib.Compress`, and `zlib.Decompress`.
Misc/NEWS.d/next/Library/2025-09-06-14-47-23.gh-issue-116946.hj_u1t.rst [new file with mode: 0644]
Misc/NEWS.d/next/Library/2025-09-06-14-53-19.gh-issue-116946.c-npxd.rst [new file with mode: 0644]
Misc/NEWS.d/next/Library/2025-09-06-14-54-01.gh-issue-116946.hzQEWI.rst [new file with mode: 0644]
Misc/NEWS.d/next/Library/2025-09-06-14-56-40.gh-issue-116946.GGIeyO.rst [new file with mode: 0644]
Modules/_curses_panel.c
Modules/_remote_debugging_module.c
Modules/_tkinter.c
Modules/posixmodule.c
Modules/zlibmodule.c