<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=492164913-12062006><FONT face=Arial size=2>I notice that file() 
throws an IOError when it detects an invalid mode string.&nbsp; Wouldn't a 
ValueError be more appropriate?</FONT></SPAN></DIV>
<DIV><SPAN class=492164913-12062006><FONT face=Arial 
size=2>Kristján</FONT></SPAN></DIV></BODY></HTML>