[Python-3000] have zip() raise exception for sequences of different lengths (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Aug 31 02:06:56 CEST 2006


Guido van Rossum wrote:

Perhaps a compromise could be to add a keyword parameter to request such an exception?

But who is going to bother using such a keyword, when it's not necessary for correct operation of the program in the absence of bugs?

(We could even add three options: truncate, pad, error, with truncate being the default, and pad being the old map() and filter() behavior.)

This seems to fall foul of the no-constant-parameters guideline.

-- Greg



More information about the Python-3000 mailing list