Skip to content

Commit 53aa185

Browse files
author
Kenneth Reitz
committed
Merge pull request realpython#205 from hrldcpr/master
consistent use of double-underscore for throwaway variable
2 parents b55af5c + 0d4865e commit 53aa185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/writing/style.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ Instead, use a list comprehension:
321321

322322
.. code-block:: python
323323
324-
four_lists = [[] for _ in xrange(4)]
324+
four_lists = [[] for __ in xrange(4)]
325325
326326
327327
A common idiom for creating strings is to use `join <http://docs.python.org/library/string.html#string.join>`_ on an empty string.::

0 commit comments

Comments
 (0)