diff --git a/docs/writing/style.rst b/docs/writing/style.rst index cb2e030..042bdce 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -349,7 +349,9 @@ Instead, use a list comprehension: .. code-block:: python - four_lists = [[] for __ in range(4)] + four_lists = [[] for __ in xrange(4)] + +Note: Use range() instead of xrange() in Python 3 Create a string from a list ~~~~~~~~~~~~~~~~~~~~~~~~~~~