OK - seems to me (from this: http://pythonhosted.org/six/), that this is
the right thing to do. We call it `xrange` and `six` takes care of
translating that into `range`, if python3 is present. Did I get that right?


On Fri, Jul 19, 2013 at 3:36 PM, Ariel Rokem <arokem@gmail.com> wrote:

> @matthew-brett : am I doing this wrong?
>
>
> On Fri, Jul 19, 2013 at 7:30 AM, Stefan van der Walt <
> notifications@github.com> wrote:
>
>> In dipy/reconst/dti.py:
>>
>> >  import numpy as np
>> > -from ..data import get_sphere
>> > +
>> > +import scipy.optimize as opt
>> > +
>> > +from dipy.utils.six.moves import xrange
>>
>> Strange, I just tried ``` from skimage._shared.six.moves import range ```
>> and it worked fine. Perhaps the version in DiPy is old?
>>
>> —
>> Reply to this email directly or view it on GitHub<https://github.com/nipy/dipy/pull/54/files#r5293353>
>> .
>>
>
>