3 ms·
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 implem
by rs23296008n1 8y 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.