[Python-checkins] peps: Fix PEP 488 to follow the proper meaning of the debug_override

brett.cannon python-checkins at python.org
Fri Mar 27 19:41:42 CET 2015


https://hg.python.org/peps/rev/4dafa00301a6
changeset:   5745:4dafa00301a6
parent:      5740:96bd93bf47fd
user:        Brett Cannon <brett at python.org>
date:        Fri Mar 27 14:40:51 2015 -0400
summary:
  Fix PEP 488 to follow the proper meaning of the debug_override
argument for importlib.util.cache_from_source() (PEP originally had
the semantics reversed for True/False values).

The change does not change the outcome of the backwards-compatibility
section and thus is considered a minor change.

files:
  pep-0488.txt |  8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/pep-0488.txt b/pep-0488.txt
--- a/pep-0488.txt
+++ b/pep-0488.txt
@@ -180,10 +180,10 @@
 users never look at the contents of the __pycache__ directory and so
 this won't be an issue.
 
-The ``debug_override`` parameter will be deprecated. As the parameter
-expects a boolean, the integer value of the boolean will be used as
-if it had been provided as the argument to ``optimization`` (a
-``None`` argument will mean the same as for ``optimization``). A
+The ``debug_override`` parameter will be deprecated. A ``False``
+value will be equivalent to ``optimization=1`` while a ``True``
+value will represent ``optimization=''`` (a ``None`` argument will
+continue to mean the same as for ``optimization``). A
 deprecation warning will be raised when ``debug_override`` is given a
 value other than ``None``, but there are no plans for the complete
 removal of the parameter at this time (but removal will be no later

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


More information about the Python-checkins mailing list