[Python-Dev] When to use EOFError?

Ethan Furman ethan at stoneleaf.us
Mon Jun 27 18:47:31 EDT 2016


On 06/27/2016 03:20 PM, Guido van Rossum wrote:

> The point is that it's not an error. In Andre Malo's use case, at
> least, EOFError is used as a control flow exception, not as an error.

Like StopIteration then: only an error if it escapes.

--
~Ethan~



More information about the Python-Dev mailing list