4 ms·
One returns a list of lists, the other an iterator of lists. split_iter() docs say, "split_iter() yields lists of non-separator values," whereas split() docs s
by mhashemi 12y ago
One returns a list of lists, the other an iterator of lists.
split_iter() docs say, "split_iter() yields lists of non-separator values," whereas split() docs say, "Returns a list of lists." Still, I'll look at clarifying it. ;)
- geoelectric 12y agoYou're absolutely correct. I read "yields" colloquially, not in terms of "yield." Written as designed. :)