if a := 1 or b := 0:
return a + b
Good luck debugging why this doesn’t work. if a := 1 or b := 0:
return a + b
Good luck debugging why this doesn’t work. if (a := 1) or (b := 1):
print(locals())
since a is truthy, it gets bound and is in scope, whereas b is not, which makes sense to me.So are you arguing that the language should not have short-circuit or-statements?
That just seems like you are sacrificing tons of usability only to slightly improve on the expectations of those who are just starting python, like the first 1-2weeks of trying to learn it.