New submission from Linus Pithan <linus.pit...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue38876>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to