[Numpy-discussion] nonzero() behaviour has changed

Ed Schofield schofield at ftw.at
Thu May 18 10:21:10 EDT 2006


George Nurser wrote:
> This is a very useful thread. Made me think about what the present
> arrangement is supposed to do.

Great!

> Alternatively, instead of transpose, we can simply use zip.
>
> E.g. (3D)
> In [42]: for i,j,k in zip(*xx):
>   ....:     print i,j,k

That's interesting.  I've never thought of zip as a transpose operation
before, but I guess it is ...

-- Ed





More information about the NumPy-Discussion mailing list