Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
rand_r
· 1y ago · 0 comments
There is no difference between “def f(x={})” and “def f(x=dict())”, unless you have shadowed the dict builtin. They both have exactly the same subtle bug if you are mutating or return x later.
Comments
No comments yet.
Better HN