<div dir="ltr">On Thu, Jul 27, 2017 at 7:42 PM, Ethan Furman <span dir="ltr"><<a href="mailto:ethan@stoneleaf.us" target="_blank">ethan@stoneleaf.us</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How I get the point[0] == 3?  The first definition of an ntuple had the order as x, y, and since the proposal is only comparing field names (not order), this (y, x) ntuple ends up being reversed to how it was specified.<span class=""><br></span></blockquote><div><br></div><div>I'm not sure there ever was a "proposal" per se, but:<br><br></div><div>ntuple(x=a, y=b)<br></div><div><br></div><div>had better be a different type than:<br><br></div><div>ntuple(y=b, x=a)<br><br></div><div>but first we need to decide if we want an easy way to make an namedtuple-like object or a SimpleNemaspace-like object....<br></div><div><br></div><div>but if you are going to allow indexing by integer, then order needs to be part of the definition.<br></div><div> </div>-CHB<br></div><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R            (206) 526-6959   voice<br>7600 Sand Point Way NE   (206) 526-6329   fax<br>Seattle, WA  98115       (206) 526-6317   main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>