I'm trying to improve my documentation. I want to say that this function accepts something that is a collections.Iterable, but the code will iterate over the iterable many times. A "list" is too specific, and an "iterable" doesn't work because some iterables can only be iterated once.
Is there a name for a thing? "Re-iterable"? Multiple-iterable?
You probably want the term "sequence". A sequence in Python is something that has a length and supports item access by index.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With