Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3.11] gh-50644: Forbid pickling of codecs streams (GH-109180) #109232

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
merged 1 commit into from
Sep 10, 2023

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Sep 10, 2023

Attempts to pickle or create a shallow or deep copy of codecs streams
now raise a TypeError.

Previously, copying failed with a RecursionError, while pickling
produced wrong results that eventually caused unpickling to fail with
a RecursionError.
(cherry picked from commit d6892c2)

Co-authored-by: Serhiy Storchaka [email protected]

Attempts to pickle or create a shallow or deep copy of codecs streams
now raise a TypeError.

Previously, copying failed with a RecursionError, while pickling
produced wrong results that eventually caused unpickling to fail with
a RecursionError.
(cherry picked from commit d6892c2)

Co-authored-by: Serhiy Storchaka <[email protected]>
@bedevere-bot bedevere-bot added the type-bug An unexpected behavior, bug, or error label Sep 10, 2023
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) September 10, 2023 17:07
@serhiy-storchaka serhiy-storchaka merged commit b070d73 into python:3.11 Sep 10, 2023
@miss-islington miss-islington deleted the backport-d6892c2-3.11 branch September 10, 2023 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants