Posts: 4,655
Threads: 1,498
Joined: Sep 2016
itertools.zip_longest()
exists but
itertools.zip_shortest()
does not. is there some other name to call to iterate each iterator (generator), in the given list, in parallel, stopping iteration when the
shortest iterator (generator) runs out (length unknown in advance)?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,655
Threads: 1,498
Joined: Sep 2016
that was the first one i looked for after i googled for this and it wasn't in there.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,655
Threads: 1,498
Joined: Sep 2016
i saw a web page that (maybe just poorly written) that suggested
zip()
and
zip_longest()
were both in itertools. but after post #2 i looked at builtins and saw it there. i had been assuming
zip()
was in
itertools
up until then. when i found it wasn't, i looked for
zip_shortest
and could not find that anywhere. then i looked for
zip
and it got me to
itertools
in another way. i must have looked for it w/o the ().
there needs to be a
feature->name reference document. that would make searches a lot cleaner.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,655
Threads: 1,498
Joined: Sep 2016
both of those indexes require knowing the name of what you are looking for, first. what i mean is an index of the things to be done, such as a phrase of what you want to do. a
keyword in context index would be even nicer.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,655
Threads: 1,498
Joined: Sep 2016
it would be an index branch describing the way iterators are handled and refer to what does exist ... builtin zip(). another branch with a slightly different description would refer to itertools.zip_longest().
and i just found a bug in the Firefox PDF reader's search that could miss some matches.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.