4 ms·
> Bare excepts are syntactic sugar for `except BaseException`. I'm guessing that a `3to4` script would be provided which replaces bare `except:` with `except B
by rectang 2y ago
> Bare excepts are syntactic sugar for `except BaseException`.
I'm guessing that a `3to4` script would be provided which replaces bare `except:` with `except BaseException:`. We have the experience of `2to3` to draw on with regards to how that might play out.
EDIT: Haha, I now see that this PEP proposes a change without advancing the major version. That surprises me.
- williamsmj 2y ago1. Such a script is proposed in the PEP. 2. Python does not use semantic versioning. 3.13 is a different major version to 3.12.
- pansa2 2y agoGiven what happened with Python 2 => 3, I’m not sure we’ll ever see Python 4.