Language change and code breaks
Skip Montanaro
skip at pobox.com
Wed Jul 25 09:33:42 EDT 2001
Duncan> It might be an idea though to change some of the error messages
Duncan> when a NameError or AttributeError is uncaught if a name could
Duncan> have matched with different case (although I'm not sure how much
Duncan> overhead this might cause).
Duncan> NameError: name 'x' is not defined
Duncan> could become:
Duncan> NameError: name 'x' is not defined, nearest match was 'X'
Interesting idea. Performance in exception handling is generally not a big
issue, because most often the program is going to exit anyway.
--
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/
More information about the Python-list
mailing list