v153 · joint iteration

The three modes, and the padding

Ragged inputs are the normal case, not the exception. Edit the three sources below and all three modes run at once on the same data — because the only way to choose between them is to see them disagree.

The sources

All three, same input

padding is read only under longest. Under the other two modes the option is not even validated, so a padding passed by mistake is ignored without complaint — which is worth knowing, because it is the one place in this API where a wrong argument fails quietly. An unrecognised mode, by contrast, is a TypeError.

Step by step, for the mode you picked

Each step of the walk
steptuplewhat happened

see also