<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 8, 2013 at 9:32 PM, Guido van Rossum <span dir="ltr"><<a href="mailto:guido@python.org" target="_blank">guido@python.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":274" style="overflow:hidden">- Parallel arrays or arrays of tuples? I think the API should require<br>

an array of tuples. It is trivial to zip up parallel arrays to the<br>
required format, while if you have an array of tuples, extracting the<br>
parallel arrays is slightly more cumbersome.</div></blockquote></div><br>I agree with your conclusion but not with the rationale: converting between array of tuples and parallel arrays is trivial both ways:</div><div class="gmail_extra">
<br></div><div class="gmail_extra"><div class="gmail_extra">>>> at = [(1,2,3), (4,5,6), (7,8,9), (10, 11, 12)]</div><div class="gmail_extra">>>> zip(*at)</div><div class="gmail_extra">[(1, 4, 7, 10), (2, 5, 8, 11), (3, 6, 9, 12)]</div>
<div class="gmail_extra">>>> zip(*_)</div><div class="gmail_extra">[(1, 2, 3), (4, 5, 6), (7, 8, 9), (10, 11, 12)]</div><div class="gmail_extra"><br></div><div class="gmail_extra">(Note that zip(*x) is basically transpose(x).)</div>
</div></div>