<br><br><div class="gmail_quote"><div dir="ltr">On Thu, Apr 14, 2016, 17:14 MRAB <<a href="mailto:python@mrabarnett.plus.com">python@mrabarnett.plus.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2016-04-14 21:42, Armin Rigo wrote:<br>
> Hi Victor,<br>
><br>
> On 14 April 2016 at 17:19, Victor Stinner <<a href="mailto:victor.stinner@gmail.com" target="_blank">victor.stinner@gmail.com</a>> wrote:<br>
>> Each time a dictionary is created, the global<br>
>> version is incremented and the dictionary version is initialized to the<br>
>> global version.<br>
><br>
> A detail, but why not set the version tag of new empty dictionaries to<br>
> zero, always?   Same after a clear().  This would satisfy the<br>
> condition: equality of the version tag is supposed to mean "the<br>
> dictionary content is precisely the same".<br>
><br>
If you did that, wouldn't it then be possible to replace an empty dict<br>
with another empty dict with you noticing? </blockquote></div><div><br></div><div>If you meant to say "without" then yes.</div><div><br></div><div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Would that matter?<br></blockquote></div><div><br></div><div>Nope because this is about versioining content, so having identical/empty content compare equal is fine.</div><div><br></div><div>-brett</div><div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
_______________________________________________<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/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/brett%40python.org" rel="noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/brett%40python.org</a><br>
</blockquote></div>