We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec861bc commit 89f9bf6Copy full SHA for 89f9bf6
docs/topics/python3.txt
@@ -359,7 +359,10 @@ The ``long`` type no longer exists in Python 3. ``1L`` is a syntax error. Use
359
``xrange``
360
~~~~~~~~~~
361
362
-Import ``six.moves.xrange`` wherever you use ``xrange``.
+If you use ``xrange`` on Python 2, import ``six.moves.range`` and use that
363
+instead. You can also import ``six.moves.xrange`` (it's equivalent to
364
+``six.moves.range``) but the first technique allows you to simply drop the
365
+import when dropping support for Python 2.
366
367
Moved modules
368
~~~~~~~~~~~~~
0 commit comments