
April 16, 2018
10:08 a.m.
On Sun, Apr 15, 2018 at 08:35:51PM +0300, Serhiy Storchaka wrote:
I have ideas about implementing zero-overhead try/except, but I have doubts that it is worth. The benefit seems too small.
It is conventional wisdom that catching exceptions is expensive, and that in performance critical code it is better to "look before you leap" if possible, and avoid try...except. Are you saying this advice is obsolete? If not, then perhaps reducing the overhead of catching exceptions may be worthwhile. -- Steve