From d3e97f2ec1ae42bd4bae48b11ad32e21a071cb9d Mon Sep 17 00:00:00 2001 From: Dmytro Brykovets Date: Sat, 15 Apr 2017 12:34:19 +0300 Subject: [PATCH 1/2] Remove junk in Jinja code block The "
From 6e0c78df7b2693c8937bafe58c8b856c1e2bdc39 Mon Sep 17 00:00:00 2001 From: monchitos Date: Tue, 18 Apr 2017 10:02:15 -0500 Subject: [PATCH 2/2] 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~