Python needs new syntax for
try:
x = int(y)
except:
x = 0
Because as soon as you have 1 valid case someone is going to just wrap all their code in
try:
# 5000 (or more than 1) lines of code
except:
pass
And say, "well, sometimes it is valid to have try/except:"
Post
August 8, 2021