[issue6220] typo: opne in "doanddont"
report at bugs.python.org
Sat Jun 6 13:30:57 CEST 2009
Ezio Melotti <ezio.melotti at 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
Indeed it could be clearer.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list