3 ms·
FWIW, I've only use 8 of the listed new features, and 2 of them are to get behavior that was in Python 2. That makes it come across as if I don't find these ne
by eesmith 5y ago
FWIW, I've only use 8 of the listed new features, and 2 of them are to get behavior that was in Python 2.
That makes it come across as if I don't find these new features to be useful. Actually, it's more that until earlier this year I still supported Python 2.7.
> So if you don't want the match statement, are you willing to give up the better error messages as a trade?
That's a rather unfair argument. The new parser doesn't require the match statement, so the error message could have been added without making that tradeoff.
> Interpolation support for bytes and bytearray via %
Wasn't that added because it was a pain point in the Python 2->3 transition?
After all, it existed in Python 2.x for both str() and unicode() strings.
> Suppressing exception context (raise exc from None)
This also restored functionality from Python 2. What Python 3 added was chained exceptions, but with no option to disable chaining except through circumlocutions.