<div dir="ltr"><div>I'll probably get complaints because I'm not waiting for the benchmark results to come in, but I think I've seen enough.</div><div><br></div><div>To me the only defensible behavior *other than the pre-3.6 behavior* is that after deletions the order remains preserved and new insertions happen at the end -- i.e. the same where they would go if the deleted items were never inserted.</div><div><br></div><div>I find it hard to believe that there would be a speed difference that's noticeable outside micro-benchmarks or applications making extreme use of dicts.</div><div><br></div><div>PS. It seems odd that people arguing that the behavior after deletions doesn't matter are also arguing that deletions are uncommon? Surely there should be no speed penalty if you never delete anything from a dict, so if you believe deletions are rare anyway, why would you care about paying a bit extra for them?<br></div><div><div><div class="gmail_extra"><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></div></div></div>