[Python-Dev] IO module precisions and exception hierarchy (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 29 01:19:30 CEST 2009
- Previous message: [Python-Dev] IO module precisions and exception hierarchy
- Next message: [Python-Dev] IO module precisions and exception hierarchy
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Michael Foord wrote:
Well, the file type knows what mode it is opened in so catching these errors is really not difficult at all.
Yes, in this particular case it could do some checking of its own before making the system call. But this still has nothing to do with the exception hierarchy.
-- Greg
- Previous message: [Python-Dev] IO module precisions and exception hierarchy
- Next message: [Python-Dev] IO module precisions and exception hierarchy
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]