Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ pyrange_reversed
Function
pyrange_reversed
Lib/test/test_range.py:19–21 ·
view source on GitHub ↗
(start, stop, step)
Source
from the content-addressed store, hash-verified
17
start += step
18
19
def
pyrange_reversed(start, stop, step):
20
stop += (start - stop) % step
21
return
pyrange(stop - step, start - step, -step)
22
23
24
class
RangeTest(unittest.TestCase):
Callers
1
test_range_iterators
Method · 0.85
Calls
1
pyrange
Function · 0.85
Tested by
no test coverage detected