Nikolaus Rath wrote:
I think EOFError conveys more information. UnpicklingError can mean a
lot of things, EOFError tells you the precise problem: pickle expected
more data, but there was nothing left.

I think EOFError should be used for EOF between pickles,
but UnpicklingError should be used for EOF in the middle of
a pickle. The former is not necessarily an error, but the
latter definitely is.

--
Greg
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to