◐ Shell
clean mode source ↗

[3.10] gh-90494: Reject 6th element of the __reduce__() tuple (GH-93609) by miss-islington · Pull Request #93632 · python/cpython

…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>

@bedevere-bot mentioned this pull request

Jun 9, 2022

Riahiamirreza