FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-122559: Synchronize C and Python implementation of the io module about pickling (GH-122628) by serhiy-storchaka · Pull Request #133381 · python/cpython · GitHub

/ cpython Public

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

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-e9253eb-3.13
May 4, 2025
Merged

[3.13] gh-122559: Synchronize C and Python implementation of the io module about pickling (GH-122628)#133381
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-e9253eb-3.13

Conversation

serhiy-storchaka commented May 4, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL