diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-09-02 11:17:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-02 11:17:16 (GMT) |
commit | ab29053784c678f003d832bbf9fa4ca7b63db623 (patch) | |
tree | 684690f0996ba9dcce970188f6610c2d29ca5b0f /Python/sysmodule.c | |
parent | 5c408e333dce102fbe71725a43d7dec5e6798928 (diff) | |
download | cpython-ab29053784c678f003d832bbf9fa4ca7b63db623.zip cpython-ab29053784c678f003d832bbf9fa4ca7b63db623.tar.gz cpython-ab29053784c678f003d832bbf9fa4ca7b63db623.tar.bz2 |
[3.13] gh-123431: Harmonize extension code checks in pickle (GH-123434) (#123459)
gh-123431: Harmonize extension code checks in pickle (GH-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 0c3ea3023878f5ad5ca4680d5510da1fe208cbfa)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions