Combine iterables into a list of tuples, stopping at the shortest input.
Syntax
zip(*iterables)Parameters
| Name | Description |
|---|---|
iterablesString | list | tuple | dict | Values to combine. Dictionaries contribute keys. Optional · Variadic No default |
Returns
list[tuple] — list of tuples where each tuple contains one item from each input.Behavior / side effects
Combine iterables into a list of tuples, stopping at the shortest input.
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
# Pair labels with click points
labels = ["left", "right"]
points = [Point(100, 500), Point(900, 500)]
for pair in zip(labels, points):
text(pair[0])
click(pair[1])Errors / limitations
No additional limitations documented; follow the parameter and behavior contract above.
Related APIs
None