docs/writing/style.rst currently has an example of using xrange:
four_lists = [[] for __ in xrange(4)]
This does not work for Python3 as xrange functionality is now implemented by range()
as per https://docs.python.org/3/whatsnew/3.0.html
A note can be added to this section to indicate this.
docs/writing/style.rst currently has an example of using xrange:
This does not work for Python3 as xrange functionality is now implemented by range()
as per https://docs.python.org/3/whatsnew/3.0.html
A note can be added to this section to indicate this.