Comment by rand_r

Comment by rand_r 11 hours ago

0 replies

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.