[Python-Dev] When to use EOFError? (original) (raw)
Ethan Furman ethan at stoneleaf.us
Mon Jun 27 18:47:31 EDT 2016
- Previous message (by thread): [Python-Dev] When to use EOFError?
- Next message (by thread): [Python-Dev] When to use EOFError?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [Python-Dev] When to use EOFError?
- Next message (by thread): [Python-Dev] When to use EOFError?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]