[Python-3000] [PythonInfo Wiki] Update of "GoogleSprintPy3k" by 65.57.245.11

Fredrik Johansson fredrik.johansson at gmail.com
Mon Aug 21 21:28:30 CEST 2006


On 8/21/06, Guido van Rossum <guido at python.org> wrote:
> Perhaps there could be (or is there already?) a helper in itertools
> that iterates over multiple iterables padding the shorter inputs with
> None to the length of the longest one.

I think the most convenient solution would be to handle this with a
keyword argument to zip(), i.e., zip(a, b, pad=True).

Fredrik Johansson


More information about the Python-3000 mailing list