4 ms·
Thank you for being honest about making the exact mistake they are trying to help out with this. I’ll restate what I posted elsewhere, I have never come across
by gklitz 2y ago
Thank you for being honest about making the exact mistake they are trying to help out with this.
I’ll restate what I posted elsewhere, I have never come across anyone who actually wanted to write a bare except, only people who thought naively that it worked like “except Exception” actually does.
I understand people are grabbing pitchforks because everyone has at o e time or another written code using a bare except and they are thinking that this will break it, but they 100% intended that to work like “except exception” python could just make that the default for the bare exemption and keep the syntax.
Depreciating the behavior is a good choice, and anyone who actually wants to capture exit events or keyboard interrupt can explicitly capture those.
If code breaks with this depreciation it’s because someone is doing something extremely out of the ordinary but isn’t being explicit about it.