<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Sep 8, 2013 at 5:26 PM, Greg <span dir="ltr"><<a href="mailto:greg.ewing@canterbury.ac.nz" target="_blank">greg.ewing@canterbury.ac.nz</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 9/09/2013 5:52 a.m., Guido van Rossum wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Well, to me zip(*x) is unnatural, and it's inefficient when the arrays are long.<br>
</blockquote>
<br></div>
Would it be worth having a transpose() function in the stdlib<br>
somewhere, that returns a view instead of copying the data?<span class="HOEnZb"><font color="#888888"></font></span></blockquote><div><br></div><div>I'd be hesitant to add just that one function, given that there's hardly any support for multi-dimensional arrays in the stdlib. (NumPy of course has a transpose(), and that's where it arguably belongs.) <br>

</div></div><br>-- <br>--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)
</div></div>