]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-122559: Synchronize C and Python implementation of the io module about pickling...
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 4 May 2025 14:06:49 +0000 (17:06 +0300)
committerGitHub <noreply@github.com>
Sun, 4 May 2025 14:06:49 +0000 (14:06 +0000)
commite9253ebf74433de5ae6d7f1bce693a3a1173b3b1
treec5af2a1d40830d263122aefdded4ea2b48cc4683
parenta247dd300ea0c839154e2e38dbc0fdc9fdff673f
gh-122559: Synchronize C and Python implementation of the io module about pickling (GH-122628)

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.
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