friendlysam.parts.FlowNetwork.times

FlowNetwork.times(start, *range_args)

Get a sequence of times.

See also: iter_times(), iter_times_between(), times_between().

This works exactly like iter_times(), but returns a tuple.

Parameters:
  • start (any object) – The index to start from.
  • *range_args – Args exactly like for the built-in range().

Examples

>>> part = Part()
>>> part.times(3, 5)
(3, 4, 5, 6, 7)
>>> part.times(0, -5, 1, 2)
(-5, -3, -1)