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/145431.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 12:40:16 EDT 2016
On 06/21/2016 01:48 PM, Serhiy Storchaka wrote:

> There is a design question. If you read file in some format or with some
> protocol, and the data is ended unexpectedly, when to use general
> EOFError exception and when to use format/protocol specific exception?

I believe that EOFError was created for the situation when a file 
unexpectedly ends.

--
~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