Skip to content

[3.13] gh-122559: Synchronize C and Python implementation of the io module about pickling (GH-122628) #133381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented May 4, 2025

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 e9253eb)

…e io module about pickling (pythonGH-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.
(cherry picked from commit e9253eb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant