<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 3, 2014 at 12:59 PM, Stefano Borini <span dir="ltr"><<a href="mailto:stefano.borini@ferrara.linux.it" target="_blank">stefano.borini@ferrara.linux.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><span style="color:rgb(34,34,34)">So if you want to keep __getitem__ signature unchanged, you will have to map labels</span><br>
</div></div>
to positions manuallyi inside __getitem__, a potentially complex task. Not even<br>
strategy 3 (namedtuple) would solve this issue.<br></blockquote><div><br></div><div>Yes, this is true. However, in practice many implementations of labeled arrays would have generic labeled axes, so they would need to use their own logic to do the mapping in __getitem__ anyways.</div>
</div><br></div></div>