From 0d4865ed66f8e98b8169760fe666ef7f9a4422b1 Mon Sep 17 00:00:00 2001 From: Harold Cooper Date: Sun, 7 Oct 2012 12:41:50 -0700 Subject: [PATCH] use double-underscore for temporary variable, as encouraged elsewhere in this file --- docs/writing/style.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/writing/style.rst b/docs/writing/style.rst index 58ce019..1f26605 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -321,7 +321,7 @@ Instead, use a list comprehension: .. code-block:: python - four_lists = [[] for _ in xrange(4)] + four_lists = [[] for __ in xrange(4)] A common idiom for creating strings is to use `join `_ on an empty string.::