"Dave Angel" <da...@ieee.org> wrote
My suspicion is that the author just wants you to try to do an open() (readonly), inside a try/except block, and to successfully handle the exception.
And the critical thing here is that it must be an open in read mode. As others pointed out if you use write mode it will (nearly) always succeed, even if that means overwriting an existing file.
Alan G. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor