Adding a reminder for preventing a misuse of the example in "common gotchas/mutable default arguments"

This commit is contained in:
monchitos
2017-04-18 10:02:15 -05:00
parent 83d1fd49d5
commit 6e0c78df7b
+1
View File
@@ -76,6 +76,7 @@ signal that no argument was provided (:py:data:`None` is often a good choice).
to.append(element)
return to
Do not forget, you are passing a *list* object as the second argument.
When the Gotcha Isn't a Gotcha
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~