[Python-3000] test_mmap.py and OSError (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Jul 12 07:26:54 CEST 2007


Joe Gregorio wrote:

flush() raises ValueError() if the file is already closed,

Should io.py raise OSError instead of ValueError?

Is it really necessary to raise anything at all? An already-closed file is as flushed as it can get, so why not just let it be a no-op?

-- Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | Carpe post meridiem! | Christchurch, New Zealand | (I'm not a morning person.) | greg.ewing at canterbury.ac.nz +--------------------------------------+



More information about the Python-3000 mailing list