Skip to content

Commit 1255d8f

Browse files
committed
Merge pull request #669 from kuldeeps48/master
A note for xrange() use in Python 3. Issue #665
2 parents 74e1524 + 7aca681 commit 1255d8f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/writing/style.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,8 @@ Instead, use a list comprehension:
350350
.. code-block:: python
351351
352352
four_lists = [[] for __ in xrange(4)]
353+
354+
Note: Use range() instead of xrange() in Python 3
353355

354356
Create a string from a list
355357
~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)