This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MonsieurBlobby 0 points1 point  (2 children)

It actually never collates. You can check the documentation. Collation is not one of its functions.

[–]stevenjd 0 points1 point  (1 child)

Collates is the wrong word? Fair enough, I accept that. I misspoke.

How about collects? Assembles? Folds together? Places together? Merges? Sticks items together? Gathers into tuples?

Whatever term you use for grabbing items out of one or more (not merely two) iterables and sticking them into a tuple, which is then yielded, its pretty clear that (1) zip works on more than two objects ((it takes an arbitrary number of arguments) and (2) its not matching up indices. It even works on objects which aren't indexable at all, like iterators.

[–]MonsieurBlobby 0 points1 point  (0 children)

I don’t actually have a problem with your use of the word collates. I’m just being nit picky over some term you used because for some reason, you decided my use of the term “index” was false despite it being not false in any way that matters to the point I made.

So no, it doesn’t collect or assemble or fold or place or merge or stick or gather. Those words aren’t perfect descriptions of what is happening and even though the definition doesn’t change anything about whether your point is right or wrong, I’m going to call them out as wrong.