[pypy-svn] pypy default: A "trivial" change to argument that improves kwargs handling

fijal commits-noreply at bitbucket.org
Thu Jan 27 08:52:00 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r41378:57a9d9290cb6
Date: 2011-01-27 09:48 +0200
http://bitbucket.org/pypy/pypy/changeset/57a9d9290cb6/

Log:	A "trivial" change to argument that improves kwargs handling

diff --git a/pypy/interpreter/argument.py b/pypy/interpreter/argument.py
--- a/pypy/interpreter/argument.py
+++ b/pypy/interpreter/argument.py
@@ -154,6 +154,8 @@
         # unpack the ** arguments
         space = self.space
         if space.isinstance_w(w_starstararg, space.w_dict):
+            if not space.is_true(w_starstararg):
+                return False # don't call unpackiterable - it's jit-opaque
             keys_w = space.unpackiterable(w_starstararg)
         else:
             try:


More information about the Pypy-commit mailing list