This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Claudiu.Popa
Recipients BTaskaya, Claudiu.Popa, Linus Pithan, alexandre.vassalotti
Date 2019-11-21.13:08:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574341695.04.0.506533374591.issue38876@roundup.psfhosted.org>
In-reply-to
Content
It seems there are a couple of places in `_pickle.c` where we favour a `KeyError` instead of `UnpicklingError` such as https://github.com/python/cpython/blob/master/Modules/_pickle.c#L6178. From a quick debugging it seems it originates in `load_long_binget`. 

Ideally those places should return `UnpicklingError` instead, not sure why a `KeyError` was preferred. Happy to submit a patch if that's a change that makes sense.
History
Date User Action Args
2019-11-21 13:08:15Claudiu.Popasetrecipients: + Claudiu.Popa, alexandre.vassalotti, BTaskaya, Linus Pithan
2019-11-21 13:08:15Claudiu.Popasetmessageid: <1574341695.04.0.506533374591.issue38876@roundup.psfhosted.org>
2019-11-21 13:08:15Claudiu.Popalinkissue38876 messages
2019-11-21 13:08:14Claudiu.Popacreate