2 ms·
From my understanding the docs are correct: > split_iter() yields lists of non-separator values. -> returns a generator of lists vs for split() > Returns a
by detaro 12y ago
From my understanding the docs are correct:
> split_iter() yields lists of non-separator values.
-> returns a generator of lists
vs for split()
> Returns a list of lists.
Note that the examples in the docs always wrap split_iter() in list(), hiding the generator step from the visible output.