Hacker News new | past | comments | ask | show | jobs | submit login

try/except/else used to throw me, but I've grown to like the idiom.

All it means is the try clause didn't raise any exceptions. And a "finally" clause is ran whether an exception was raised or not.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: