[Python-3000] have zip() raise exception for sequences of different lengths (original) (raw)
Guido van Rossum guido at python.org
Thu Aug 31 05:01:04 CEST 2006
- Previous message: [Python-3000] have zip() raise exception for sequences of different lengths
- Next message: [Python-3000] have zip() raise exception for sequences of different lengths
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Actually given Raymond's preferences I take it back
On 8/30/06, Ron Adam <rrr at ronadam.com> wrote:
Guido van Rossum wrote:
> Perhaps a compromise could be to add a keyword parameter to request > such an exception? (We could even add three options: truncate, pad, > error, with truncate being the default, and pad being the old map() > and filter() behavior.) Maybe it can be done with just two optional keywords.
If 'match' is True, raise an error if iterables are mismatched. if a 'pad' is specified then pad, else truncate. The current truncating behavior would be the default. Ron
Python-3000 mailing list Python-3000 at python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/guido%40python.org
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-3000] have zip() raise exception for sequences of different lengths
- Next message: [Python-3000] have zip() raise exception for sequences of different lengths
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]