]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-122559: Synchronize C and Python implementation of the io module about...
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 4 May 2025 16:04:09 +0000 (19:04 +0300)
committerGitHub <noreply@github.com>
Sun, 4 May 2025 16:04:09 +0000 (16:04 +0000)
commit973e2d3e29d4994bf01683e607d2a448d3d49f4f
tree8a6e6bfb53b8358c0b0da876a1a8e35c564100f6
parent3c9d1778ef73ea835d3ec581bf48aecae30aae41
[3.13] gh-122559: Synchronize C and Python implementation of the io module about pickling (GH-122628) (GH-133381)

In the C implementation, remove __reduce__ and __reduce_ex__ methods
that always raise TypeError and restore __getstate__ methods that always
raise TypeErrori.

This restores fine details of the pre-3.12 behavior and unifies
both implementations.
(cherry picked from commit e9253ebf74433de5ae6d7f1bce693a3a1173b3b1)
Lib/test/test_io.py
Misc/NEWS.d/next/Library/2024-08-02-20-01-36.gh-issue-122559.2JlJr3.rst [new file with mode: 0644]
Modules/_io/bufferedio.c
Modules/_io/fileio.c
Modules/_io/textio.c