Skip to content

Commit ed755c1

Browse files
Change xrange function to range function
1 parent 9c2d09d commit ed755c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/writing/style.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,7 @@ Instead, use a list comprehension:
357357

358358
.. code-block:: python
359359
360-
four_lists = [[] for __ in xrange(4)]
361-
362-
Note: Use range() instead of xrange() in Python 3.
360+
four_lists = [[] for __ in range(4)]
363361
364362
Create a string from a list
365363
~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)