Ezio Melotti <ezio.melo...@gmail.com> added the comment: If we use the bare "except:" the message "could not open file!" is shown and we would waste time trying to figure out why it can't be opened.
Instead, if we use "except IOError:", the first time we run the program the error "NameError: name 'opne' is not defined" is raised, telling us what's wrong. Once we know it, we can change 'opne' to 'open' and solve the problem. Indeed it could be clearer. ---------- keywords: -patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6220> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com