<div dir="ltr"><br><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div>---</div><div><i><font color="#38761d">Zaur Shibzukhov</font></i><br></div><br></div></div></div>
<br><div class="gmail_quote">2015-03-27 7:40 GMT+03:00 Andrew Barnert <span dir="ltr"><<a href="mailto:abarnert@yahoo.com" target="_blank">abarnert@yahoo.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><span><div>On Mar 26, 2015, at 21:26, Zaur Shibzukhov <<a href="mailto:szport@gmail.com" target="_blank">szport@gmail.com</a>> wrote:</div><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-03-27 7:08 GMT+03:00 Joonas Liik <span dir="ltr"><<a href="mailto:liik.joonas@gmail.com" target="_blank">liik.joonas@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">namedlist perhaps? :)<div><br><div>if you want:"<span style="font-size:12.8px">namedtuple, but mutable.</span><span style="font-size:12.8px"> " then namedlist seems like the obvious alternative..</span></div></div></div></blockquote><div><br></div><div>The name 'namedlist' is already used in <a href="https://pypi.python.org/pypi/namedlist" target="_blank">https://pypi.python.org/pypi/namedlist</a>, 'mutabletuple' -- too in <a href="https://pypi.python.org/pypi/mutabletuple" target="_blank">https://pypi.python.org/pypi/mutabletuple</a>.<br></div></div></div></div></blockquote><div><br></div></span><div>If you're trying to provide the same concept, why use a completely unrelated name? That's like saying 'I want an ordered set, but there's already an "orderedset" on PyPI so I went with "sortedsequence"'.</div><span><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>The name recordarray is means that it 1) array of objects and 2) record with access to fields by attributes.<br></div></div></div></div></blockquote><div><br></div></span><div>But how is being "an array of objects" any different from what a tuple, list, array.array, bytearray, bytes, str, etc. already are? What's specifically array-like about this type as opposed to all of those? And what's specifically record-like about your type compared to namedtuple, Struct, or SimpleNamespace?</div><br></div></blockquote><div> <br></div><div>I am inclined to the fact that it's better to rename `objectarray` to 'mutabletuple' in order to be explicit about what is that.<br></div><div>'recordarray' is a factory function that make exactly the same as 'namedtuple' factory does (except that it create subclass of 'mutabletuple' and make '_replace' to update the 'self', not make a copy). So may be it's better to call it as 'record' or 'recordtype', or even 'recordfactory'?<br><br></div></div></div></div>