From 6e0c78df7b2693c8937bafe58c8b856c1e2bdc39 Mon Sep 17 00:00:00 2001 From: monchitos Date: Tue, 18 Apr 2017 10:02:15 -0500 Subject: [PATCH] Adding a reminder for preventing a misuse of the example in "common gotchas/mutable default arguments" --- docs/writing/gotchas.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/writing/gotchas.rst b/docs/writing/gotchas.rst index f8e2e23..fcf1439 100644 --- a/docs/writing/gotchas.rst +++ b/docs/writing/gotchas.rst @@ -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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~