Every so often I get convinced that a challenge test suite is wrong or Python is somehow giving me the wrong results. “It’s You”! I checked and quadruple-checked my code. I walked through every single line in the IDE debug mode noting how the variables changed as the code branched through. I printed everything printable… Continue reading It’s not you – it’s me
Articles on exceptions
10 Cool Pytest Tips You Might Not Know About
By Bob Belderbos on 26 February 2021
Here are 10 things we learned writing pytest code that might come in handy.
7 Tips to Improve Your Error Handling in Python
By Bob Belderbos on 6 May 2020
Proper error handling can make your Python code simpler, more readable, and idiomatic. Here are 7 tips to help you.
Errors should never pass silently
By Bob Belderbos on 18 January 2017
In this article some important anti-patterns regarding error handling and how to solve them making your code more Pythonic and easier to maintain.