[Python-checkins] peps: PEP 509: be more explicit on when the version is incremented or not
victor.stinner
python-checkins at python.org
Mon Jan 11 18:19:35 EST 2016
https://hg.python.org/peps/rev/e732b21668d6
changeset: 6168:e732b21668d6
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Jan 12 00:19:28 2016 +0100
summary:
PEP 509: be more explicit on when the version is incremented or not
files:
pep-0509.txt | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/pep-0509.txt b/pep-0509.txt
--- a/pep-0509.txt
+++ b/pep-0509.txt
@@ -153,9 +153,10 @@
* ``setdefault(key, value)`` if the `key` does not exist
* ``__detitem__(key)`` if the key exists
* ``__setitem__(key, value)`` if the `key` doesn't exist or if the value
- is different
-* ``update(...)`` if new values are different than existing values (the
- version can be incremented multiple times)
+ is not ``dict[key]``
+* ``update(...)`` if new values are different than existing values:
+ values are compared by identity, not by their content; the version can
+ be incremented multiple times
Example using an hypothetical ``dict_get_version(dict)`` function::
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list