← 返回首页
[3.10] gh-90494: Reject 6th element of the __reduce__() tuple (GH-93609) by miss-islington · Pull Request #93632 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

[3.10] gh-90494: Reject 6th element of the __reduce__() tuple (GH-93609)#93632

Merged
ambv merged 1 commit into
python:3.10from
miss-islington:backport-a365dd6-3.10
Jun 10, 2022
Merged

[3.10] gh-90494: Reject 6th element of the __reduce__() tuple (GH-93609)#93632
ambv merged 1 commit into
python:3.10from
miss-islington:backport-a365dd6-3.10

Conversation

Copy link
Copy Markdown
Contributor

copy.copy() and copy.deepcopy() now always raise a TypeError if
reduce() returns a tuple with length 6 instead of silently ignore
the 6th item or produce incorrect result.
(cherry picked from commit a365dd6)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…H-93609) copy.copy() and copy.deepcopy() now always raise a TypeError if __reduce__() returns a tuple with length 6 instead of silently ignore the 6th item or produce incorrect result. (cherry picked from commit a365dd6) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>

Copy link
Copy Markdown
Contributor Author

Status check is done, and it's a success ✅ .

bedevere-bot added type-bug An unexpected behavior, bug, or error awaiting review labels Jun 9, 2022

Copy link
Copy Markdown
Contributor Author

Status check is done, and it's a success ✅ .

1 similar comment

Copy link
Copy Markdown
Contributor Author

Status check is done, and it's a success ✅ .

Comment thread Lib/copy.py Show resolved Hide resolved
ambv merged commit a0c7df0 into python:3.10 Jun 10, 2022
miss-islington deleted the backport-a365dd6-3.10 branch June 10, 2022 13:59
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

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Footer

© 2026 GitHub, Inc.