Daniel Stutzbach wrote: > An IOError makes it more clear > that something went awry, while a ValueError typically implies that > the operation was rejected altogether.
In the code I typically write, the IOError will get reported to the user, who won't know why it happened or what to do about it, and the application will abort that operation and go on to do something else. The ValueError will cause the application to abort altogether and produce a traceback, which is as it should be, since there's a bug. In either case, it doesn't really matter whether something was written or not, as the whole operation is screwed anyway. -- Greg _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com