[pypy-svn] r72230 - pypy/trunk/pypy/interpreter

fijal at codespeak.net fijal at codespeak.net
Mon Mar 15 00:40:39 CET 2010

Author: fijal
Date: Mon Mar 15 00:40:38 2010
New Revision: 72230

combine wrapped is not needed if someone passes things like f(*args) when
args is an empty object

Modified: pypy/trunk/pypy/interpreter/argument.py
--- pypy/trunk/pypy/interpreter/argument.py	(original)
+++ pypy/trunk/pypy/interpreter/argument.py	Mon Mar 15 00:40:38 2010
@@ -99,7 +99,8 @@
-        if w_stararg is not None or w_starstararg is not None:
+        if ((w_stararg is not None and w_stararg) or
+            (w_starstararg is not None and w_starstararg)):
             self._combine_wrapped(w_stararg, w_starstararg)
             # if we have a call where * or ** args are used at the callsite
             # we shouldn't let the JIT see the argument matching

More information about the Pypy-commit mailing list