[Python-Dev] RFC: PEP 509: Add a private version to dict (original) (raw)

Victor Stinner victor.stinner at gmail.com
Fri Apr 15 04:20:48 EDT 2016


Le vendredi 15 avril 2016, Stefan Behnel <stefan_ml at behnel.de> a écrit :

How can that be achieved? If the tag is just a sequentially growing number, creating two dicts and applying one operation to the first one should give both the same version tag, right?

Armin didn't propose to get ride of the global version.

a = dict() # version = 0 b = dict() # version = 0 a['key'] = 'value' # version = 300 b['key'] = 'value' # version = 301

Victor PS: It looks like the iPad Gmail app foces me to use HTML, I don't know how to use plain text :-/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160415/e7aebec0/attachment.html>



More information about the Python-Dev mailing list