<div dir="ltr">Not sure I like that better. It's an open-ended sequence of homogeneous types. What's the advantage of a tuple? I don't want to blindly follow existing APIs.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 3, 2017 at 6:55 AM, Eric V. Smith <span dir="ltr"><<a href="mailto:eric@trueblade.com" target="_blank">eric@trueblade.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've made a minor change: the return type of fields() is now a tuple, it was a list.<br>
<br>
Eric.<span class=""><br>
<br>
On 12/2/2017 9:02 AM, Eric V. Smith wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
I've pushed another version of PEP 557. The only difference is changing the default value of "order" to False instead of True. This matches regular classes: instances can be tested for equality, but are unordered.<br>
<br>
Discussion at <a href="https://github.com/ericvsmith/dataclasses/issues/104" rel="noreferrer" target="_blank">https://github.com/ericvsmith/<wbr>dataclasses/issues/104</a><br>
<br>
It's already available at <a href="https://www.python.org/dev/peps/pep-0557/" rel="noreferrer" target="_blank">https://www.python.org/dev/pep<wbr>s/pep-0557/</a><br>
<br>
I've updated the implementation on PyPI to reflect this change: <a href="https://pypi.python.org/pypi/dataclasses/0.3" rel="noreferrer" target="_blank">https://pypi.python.org/pypi/d<wbr>ataclasses/0.3</a><br>
<br>
Eric.<br>
______________________________<wbr>_________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/python-dev</a><br></span>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/eric%2Ba-python-dev%40trueblade.com" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/options/python-dev/eric%2Ba-<wbr>python-dev%40trueblade.com</a> <br>
</blockquote><div class="HOEnZb"><div class="h5">
<br>
______________________________<wbr>_________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/guido%40python.org" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/options/python-dev/guido%<wbr>40python.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div>
</div>