]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-101006: Improve error handling when read marshal data (GH-101007)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 29 Jun 2023 09:22:19 +0000 (12:22 +0300)
committerGitHub <noreply@github.com>
Thu, 29 Jun 2023 09:22:19 +0000 (12:22 +0300)
commit8bf6904b229583033035d91a3800da5604dcaad4
tree0a6f8249b306d5d0d65886c31d32e753f714ab0a
parent3fb7c608e5764559a718ce8cb81350d7a3df0356
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().
Misc/NEWS.d/next/Core and Builtins/2023-01-13-11-37-41.gh-issue-101006.fuLvn2.rst [new file with mode: 0644]
Python/marshal.c