[Python-ideas] Antichecked exceptions

2021-10-16 Thread Stephen J. Turnbull
Soni L. writes: > Can we call this "antichecked exceptions"? I don't see why not. Personally I'd prefer calling it "exception filtering" since it's not a property of the exception, but a pattern in the calling code. But I'm only -0 on "antichecked" and +0 on "filtered". > (Is this the wrong

[Python-ideas] Antichecked exceptions

2021-10-14 Thread Soni L.
PEP 479 introduced this idea that basically boils down to raising your exceptions only when you mean it. Specifically: generators only raise StopIteration when they return/exit/terminate. And they prevent the user from raising it under other circumstances. Can we call this "antichecked exceptions