lsst.utils.iteration.isplit(string: T, sep: T) → Iterator[T]

Split a string or bytes by separator returning a generator.

string : str or bytes

The string to split into substrings.

sep : str or bytes

The separator to use to split the string. Must be the same type as string. Must always be given.

subset : str or bytes

The next subset extracted from the input until the next separator.