[Python-Dev] When to use EOFError?
Greg Ewing
greg.ewing at canterbury.ac.nz
Mon Jun 27 17:54:20 EDT 2016
More information about the Python-Dev mailing list
Mon Jun 27 17:54:20 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 ]
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. -- Greg
- 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