Generate a sequence of integers for use in for-loops.
Syntax
range(stop, /) | range(start, stop, step=1, /)Parameters
| Name | Description |
|---|---|
startInt | Start value (inclusive) Depends on overload · Positional only Default: 0 |
stopInt | End value (exclusive) Required · Positional only No default |
stepInt | Step increment Depends on overload · Positional only Default: 1 |
Returns
list[Int] — list of integers from start to stopBehavior / side effects
Generate a sequence of integers for use in for-loops.
Execution
- Blocking: No
- Thread safety: Use separate objects per flow
- Parallel execution: Yes
Value operations execute in the calling flow without an intentional wait for capture, gesture completion, or user input. Create mutable containers/builders separately in each flow; this is isolation, not a shared-object synchronization guarantee.
Example
numbers = range(5) # returns [0, 1, 2, 3, 4]
evens = range(0, 10, 2) # returns [0, 2, 4, 6, 8]
for i in numbers:
click(Point(100 + i * 50, 500)) # returns NoneErrors / limitations
No additional limitations documented; follow the parameter and behavior contract above.
Related APIs
None