[Python-3000] have zip() raise exception for sequences of different lengths
Jack Diederich
jackdied at jackdied.com
Thu Aug 31 06:00:41 CEST 2006
No need to take it back, as a long time python-* list reader I only took
your initial post as thinking out loud.
List readers can spot similar threads in the future by looking for these
three indicators:
1) Behavioral function arguments are discouraged and mostly on your say-so.
2) You didn't top post, so it wasn't a pronouncement.
3) Long time readers were sure enough of #1 and #2 that no one added a
"GOOD GOD NO" reply
top-posting-ly,
-Jack
On Wed, Aug 30, 2006 at 08:01:04PM -0700, Guido van Rossum wrote:
> 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/)
> _______________________________________________
> 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/jack%40performancedrivers.com
>
More information about the Python-3000
mailing list