Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
linux2647
· 7y ago · 0 comments
This statement returns a syntax error. But I get what you mean. For
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.
Comments
No comments yet.
Better HN