Talk Python To Me cover image

#25: Effective Python

Talk Python To Me

00:00

The Importance of Forgiveness in Python

In Python, both false and none evaluate to false their falsie values. And so what ends up happening is it introduces a lot of bugs into your code. So my advice here is if you have anything exceptional just always raise an exception. That's what exceptions are for. In Python raising exception is is a little bit of cost to it but it's not enough to matter and the clarity is worth it.

Play episode from 22:13
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app