Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0de7e76

Browse files
committed
Fix range object to step correctly
1 parent ee4f980 commit 0de7e76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/range.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (it *RangeIterator) M__next__() Object {
7474
if r >= it.Stop {
7575
panic(StopIteration)
7676
}
77-
it.Index++
77+
it.Index += it.Step
7878
return r
7979
}
8080

0 commit comments

Comments
 (0)