[Python-Dev] PEP 509: Add a private version to dict

Glenn Linderman v+python at g.nevcal.com
Wed Jan 20 16:18:25 EST 2016


On 1/20/2016 12:50 PM, Brett Cannon wrote:
>
>     A global (shared between all dicts) unit64 ma_version is actually
>     quite
>     reliable -- if a program does 1,000,000 dict modifications per second,
>     it would take it 600,000 years till wrap-around.
>

But would invalidate everything, instead of just a fraction of things, 
on every update to anything that is monitored...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20160120/2860261e/attachment-0001.html>


More information about the Python-Dev mailing list