Hacker News new | ask | show | jobs
by rectang 619 days 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.

2 comments

1. 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.

Given what happened with Python 2 => 3, I’m not sure we’ll ever see Python 4.