[GRASS-dev] [GRASS GIS] #3757: Python3: range vs xrange
GRASS GIS
trac at osgeo.org
Wed Feb 20 01:25:54 PST 2019
#3757: Python3: range vs xrange
-------------------------+-------------------------
Reporter: neteler | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.8.0
Component: Python | Version: svn-trunk
Keywords: python3 | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
In r74088 xrange() was changed to range(). If that change is fine, should
these other xrange() usages also be changed?
{{{
ag --python " in xrange"
doc/python/raster_example_ctypes.py
67:for row_n in xrange(rows):
lib/python/temporal/abstract_space_time_dataset.py
1146: >>> for i in xrange(3):
lib/python/temporal/spatio_temporal_relationships.py
423:# for i in xrange(len(maps)):
425:# for j in xrange(offset, len(maps)):
lib/python/pygrass/modules/interface/module.py
64: >>> for i in xrange(5):
87: >>> for i in xrange(5):
111: >>> for i in xrange(3):
lib/python/pygrass/raster/__init__.py
412: >>> for row in xrange(map_a.info.rows):
442: >>> for i in xrange(4):
479: >>> for row in xrange(map_a.info.rows):
480: ... for col in xrange(map_a.info.cols):
lib/python/pygrass/vector/basic.py
384: >>> for cat in xrange(100, 110): cats.set(cat, layer=cat-50)
lib/python/pygrass/vector/__init__.py
87: #return (self.read(f_id) for f_id in
xrange(self.num_of_features()))
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3757>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list