This talk is an introduction to the practice of exception handling, aimed at those without a heavy CS background or years of experience, and who are thus unfamiliar with the technique. Novices to Python will learn Python-specific techniques that make use of built-in exceptions and the context manager, as well as unusual but Pythonic ways of managing the flow control of their program.
Exception handling is a form of defensive programming, requiring the programmer to anticipate possible points of failure in his/her code, and think through methods for handling such failures in a graceful way. In this talk, I will:
The listener should walk away with a better idea of why proper exception handling is important, as well as when and how to do so. They should also leave wondering how to get better at sussing out where failure points might occur in their code, and how to deal with unexpected events in a graceful manner.