mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Merge pull request #205 from hrldcpr/master
consistent use of double-underscore for throwaway variable
This commit is contained in:
@@ -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 <http://docs.python.org/library/string.html#string.join>`_ on an empty string.::
|
||||
|
||||
Reference in New Issue
Block a user