(original) (raw)

I notice that file() throws an IOError when it detects an invalid mode string.  Wouldn't a ValueError be more appropriate?
Kristj�n