I notice that file() throws an IOError when it detects an invalid mode string. Wouldn't a ValueError be more appropriate? Kristján -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-dev/attachments/20060612/37fd048b/attachment.html