Skip to content

gh-122559: Synchronize C and Python implementation of the io module about pickling#122628

Merged
serhiy-storchaka merged 5 commits intopython:mainfrom
serhiy-storchaka:io-classes-getstate
May 4, 2025
Merged

gh-122559: Synchronize C and Python implementation of the io module about pickling#122628
serhiy-storchaka merged 5 commits intopython:mainfrom
serhiy-storchaka:io-classes-getstate

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Aug 2, 2024

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.

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

3 participants