Skip to content

[3.12] gh-123431: Harmonize extension code checks in pickle (GH-123434) #123460

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 2 commits into from
Sep 6, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Aug 29, 2024

This checks are redundant in normal circumstances and can only work if
the extension registry was intentionally broken.

  • The Python implementation now raises exception for the extension code
    with false boolean value.
  • Simplify the C code. RuntimeError is now raised in explicit checks.
  • Add many tests.
    (cherry picked from commit 0c3ea30)

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

…123434)

This checks are redundant in normal circumstances and can only work if
the extension registry was intentionally broken.

* The Python implementation now raises exception for the extension code
  with false boolean value.
* Simplify the C code. RuntimeError is now raised in explicit checks.
* Add many tests.
(cherry picked from commit 0c3ea30)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@ambv ambv merged commit 58e01a1 into python:3.12 Sep 6, 2024
26 checks passed
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.

3 participants