Author: Ronan Lamy <[email protected]>
Branch: __debug__-optimize
Changeset: r97095:fca8f3eb36c1
Date: 2019-08-07 18:49 +0100
http://bitbucket.org/pypy/pypy/changeset/fca8f3eb36c1/

Log:    Set default value for 'optimize' param to compile() to -1

diff --git a/pypy/module/__builtin__/compiling.py 
b/pypy/module/__builtin__/compiling.py
--- a/pypy/module/__builtin__/compiling.py
+++ b/pypy/module/__builtin__/compiling.py
@@ -13,7 +13,7 @@
 @unwrap_spec(filename='fsencode', mode='text', flags=int, dont_inherit=int,
              optimize=int)
 def compile(space, w_source, filename, mode, flags=0, dont_inherit=0,
-            optimize=0):
+            optimize=-1):
     """Compile the source string (a Python module, statement or expression)
 into a code object that can be executed by the exec statement or eval().
 The filename will be used for run-time error messages.
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to