[Python-Dev] PEP 201 - Parallel iteration
Barry A. Warsaw
Wed, 19 Jul 2000 14:46:13 -0400 (EDT)
>>>>> "PP" == Paul Prescod <email@example.com> writes:
PP> Why are you using zip in this case? If you *know* that you are
PP> going to get back 1-tuples then you must know that the input
PP> is a single list (i.e. you aren't using "apply"). So why are
PP> you using zip at all?
It was just an example, but I agree, you probably wouldn't use zip in
this situation. My question is, why would you ever use zip with one
parameter? To me, that's an argument for letting zip(a) return
1-tuples, not raising an exception.