[issue38876] pickle is raising KeyError insteat of pickle.UnpicklingError under certain conditions
Linus Pithan
report at bugs.python.org
Thu Nov 21 06:22:59 EST 2019
New submission from Linus Pithan <linus.pithan at gmail.com>:
When unpickling fails one would expect a pickle.UnpicklingError exception or at least a PickleError. However, when trying
pickle.loads(b"jens:")
it fails with KeyError: 980643429 which is not the wanted behaviour.
----------
components: Library (Lib)
messages: 357159
nosy: Linus Pithan
priority: normal
severity: normal
status: open
title: pickle is raising KeyError insteat of pickle.UnpicklingError under certain conditions
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38876>
_______________________________________
More information about the Python-bugs-list
mailing list