Skip to content

Conversation

@sabasiddique1
Copy link

@sabasiddique1 sabasiddique1 commented Feb 3, 2026

Summary

  • Require tuple args in pickle.load_reduce() to match _pickle
  • Add regression test for non-tuple REDUCE args

@python-cla-bot
Copy link

python-cla-bot bot commented Feb 3, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app
Copy link

bedevere-app bot commented Feb 3, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@sabasiddique1 sabasiddique1 changed the title Require tuple args in pickle REDUCE gh-144412: Require tuple args in pickle REDUCE Feb 3, 2026
Comment on lines 1437 to +1438
self.check_unpickling_error(TypeError, b'cbuiltins\nint\nNR.')
self.check_unpickling_error(TypeError, b'cbuiltins\nint\nNR.')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain what this test adds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants