On Mon, Dec 8, 2014 at 11:27 AM, Roy Smith <r...@panix.com> wrote:
> Although, to be honest, I'm wondering if this is more straight-forward
> (also not tested):
>
> def myzip37(*args):
>     if not args:
>         return
>     iters = list(map(iter, args))

Yes, I prefer this too. It's explicit and clear that passing no
arguments will yield no values.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to