[Python-Dev] When to use EOFError?
Ethan Furman
ethan at stoneleaf.us
Mon Jun 27 12:40:16 EDT 2016
More information about the Python-Dev mailing list
Mon Jun 27 12:40:16 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/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~
- 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 ]
More information about the Python-Dev mailing list