News for hackers. Stuff that matters.
Re:Python 3.11: “Zero cost” exception handling by coldtea on Wednesday October 06, 2021 @11:53AM (#28774632)
>Because exceptions are a fundamental control-flow mechanism in Python (unlike in C++, where they should only be used for exceptional control flow), I'm not sure if there will be a net benefit to "zero cost" exceptions.

Well, they might be "a fundamental control-flow mechanism" but for every StopIteration (for an example of a control flow exception use), there are multiple (up to millions) of traversed elements that didn't throw an exception.

There are no comments on this comment yet.