<p dir="ltr">I think that kills the "let's make all dicts ordered" idea, even for CPython. I wouldn't want people to start relying on this. The dict type should be clearly recognizable as the hash table it is.</p>
<p dir="ltr">Making **kwds ordered is still open, but requires careful design and implementation to avoid slowing down function calls that don't benefit.</p>
<p dir="ltr">--Guido van Rossum (sent from Android phone)</p>
<div class="gmail_quote">On May 20, 2013 8:25 AM, "<a href="mailto:fwierzbicki@gmail.com">fwierzbicki@gmail.com</a>" <<a href="mailto:fwierzbicki@gmail.com">fwierzbicki@gmail.com</a>> wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, May 20, 2013 at 6:39 AM, Barry Warsaw <<a href="mailto:barry@python.org">barry@python.org</a>> wrote:<br>
> Or in other words, if dicts are to be ordered, let's make it an explicit<br>
> language feature that we can measure compliance against.<br>
Guaranteeing a dict order would be tough on Jython - today it's nice<br>
that we can just have a thin wrapper around ConcurrentHashMap. In a<br>
world with hard ordering guarantees I think we'd need to write our own<br>
from scratch.<br>
<br>
-Frank<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-dev" target="_blank">http://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/guido%40python.org" target="_blank">http://mail.python.org/mailman/options/python-dev/guido%40python.org</a><br>
</blockquote></div>