[Python-checkins] peps: PEP 509

victor.stinner python-checkins at python.org
Sun Jan 10 18:43:51 EST 2016


https://hg.python.org/peps/rev/a576199a5350
changeset:   6157:a576199a5350
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Mon Jan 11 00:28:46 2016 +0100
summary:
  PEP 509

* point to PEP 510 for static optimizers
* remove link to issue 19332, dict.__version__ doesn't help

files:
  pep-0509.txt |  17 +++++------------
  1 files changed, 5 insertions(+), 12 deletions(-)


diff --git a/pep-0509.txt b/pep-0509.txt
--- a/pep-0509.txt
+++ b/pep-0509.txt
@@ -42,6 +42,11 @@
 check if it was modified. If the variable is modified, the variable must
 be loaded at runtime, instead of using the constant.
 
+See the `PEP 510 -- Specialized functions with guards
+<https://www.python.org/dev/peps/pep-0510/>`_ for the concrete usage of
+guards to specialize functions and for the rationale on Python static
+optimizers.
+
 
 Guard example
 =============
@@ -164,18 +169,6 @@
 Usage of dict.__version__
 =========================
 
-Detect dictionary mutation during iteration
--------------------------------------------
-
-Currently, iterating on a dictionary only detects when the dictionary
-size changes, but not when keys or values are modified. Using the
-dictionary version, it would be possible to detect when keys and values
-are modified.
-
-See the `issue #19332: Guard against changing dict during iteration
-<https://bugs.python.org/issue19332>`_.
-
-
 astoptimizer of FAT Python
 --------------------------
 

-- 
Repository URL: https://hg.python.org/peps


More information about the Python-checkins mailing list