transpose array

Aahz aahz at
Fri Oct 30 18:38:41 CET 2009

In article <mailman.2137.1256686009.2807.python-list at>,
Rhodri James <rhodri at> wrote:
>Surely more Pythonic would be:
>for t in zip(xVec, yVec, zVec):
>     print >>f, ", ".join(t)

Except that you *really* want itertools.izip() if these vectors are
likely to be any significant size.
Aahz (aahz at           <*>

"You could make Eskimos emigrate to the Sahara by vigorously arguing --
at hundreds of screens' length -- for the wonder, beauty, and utility of
snow."  --PNH to rb in r.a.sf.f

More information about the Python-list mailing list