Why is the empty dictionary a dangerous default value in Python?
Why is the empty dictionary a dangerous default value in Python? Question: I put a dict as the default value for an optional argument to a Python function, and pylint (using Sublime package) told me it was dangerous. Can someone explain why this is the case? And is a better alternative to use None instead? …