mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
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`.
This commit is contained in:
parent
859aecc33b
commit
4978bfca10
9 changed files with 60 additions and 27 deletions
|
|
@ -3062,7 +3062,10 @@ static PyType_Slot RemoteUnwinder_slots[] = {
|
|||
static PyType_Spec RemoteUnwinder_spec = {
|
||||
.name = "_remote_debugging.RemoteUnwinder",
|
||||
.basicsize = sizeof(RemoteUnwinderObject),
|
||||
.flags = Py_TPFLAGS_DEFAULT,
|
||||
.flags = (
|
||||
Py_TPFLAGS_DEFAULT
|
||||
| Py_TPFLAGS_IMMUTABLETYPE
|
||||
),
|
||||
.slots = RemoteUnwinder_slots,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue