A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-June/145433.html below:

[Python-Dev] When to use EOFError?

[Python-Dev] When to use EOFError? [Python-Dev] When to use EOFError?Ethan Furman ethan at stoneleaf.us
Mon Jun 27 18:06:31 EDT 2016
On 06/27/2016 02:54 PM, Greg Ewing wrote:
> 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.

Why is hitting the end of a file between pickles an error?

--
~Ethan~

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4