3 ms·
You shouldn't be putting a try-except catchall around every single call in Python. Exceptions mean you don't have to do that.
by pekk 12y ago
You shouldn't be putting a try-except catchall around every single call in Python. Exceptions mean you don't have to do that.
- moreentropy 12y agoFor me the most important thing exceptions mean is that they might pop up at any time, with unpredictable types. So as long as I don't have a catch all exception handler wrapped around all code, it might crash at some point.
- TheLoneWolfling 12y agoAssuming you're talking about unchecked exceptions, correct.
- moreentropy 12y agoPython doesn't have checked exceptions.
- moreentropy 12y agoThis one really deserved downvoting, great job whoever did that :/