Hacker News new | ask | show | jobs
by rs23296008n1 2686 days ago
Putting the exception handling inside the divide is foolish. Put the handler outside in the calling function where decisions about why it happened can be implemented.

Python could use a "raises" keyword though. Whether that has real benefits is debatable.