From 8958f2df0de18d3021e6022691af2132eecd08fd Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 27 Mar 2015 14:40:51 -0400 Subject: [PATCH] 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. --- pep-0488.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pep-0488.txt b/pep-0488.txt index 1ecb52e1e..aa0cfeb8b 100644 --- a/pep-0488.txt +++ b/pep-0488.txt @@ -180,10 +180,10 @@ While this might lead to long file names, it is assumed that most 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