Luke Lee

Software Engineer

Web + Desktop + Science

Fork me on Github

Exceptions for clean code

I found this great article on Python exceptions. The article spends a good amount of time discussing performance, but the most important part to me was the realization that Python uses exceptions in a variety of atypical places.

Many programmers have had it drilled into their head that exceptions, in any language, should only be used in truly exceptional cases. They're wrong. The Python community's approach to exceptions leads to cleaner code that's easier to read.

Published: 02-11-2013 16:40:56

lukelee.net