diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-06-29 12:22:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 12:22:19 +0300 |
commit | 8bf6904b229583033035d91a3800da5604dcaad4 (patch) | |
tree | 0a6f8249b306d5d0d65886c31d32e753f714ab0a /Python/codecs.c | |
parent | 3fb7c608e5764559a718ce8cb81350d7a3df0356 (diff) | |
download | cpython-8bf6904b229583033035d91a3800da5604dcaad4.tar.gz cpython-8bf6904b229583033035d91a3800da5604dcaad4.zip |
gh-101006: Improve error handling when read marshal data (GH-101007)
* EOFError no longer overrides other errors such as MemoryError or OSError at
the start of the object.
* Raise more relevant error when the NULL object occurs as a code object
component.
* Minimize an overhead of calling PyErr_Occurred().
Diffstat (limited to 'Python/codecs.c')
0 files changed, 0 insertions, 0 deletions