8000 Fix range object to step correctly · go-python/gpython@0de7e76 · GitHub
[go: up one dir, main page]

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

Lines changed: 1 addition & 1 deletion
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)
0