[pypy-commit] pypy default: make it rather a fatal error

fijal noreply at buildbot.pypy.org
Mon Oct 22 22:13:38 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r58374:536910e79306
Date: 2012-10-22 22:05 +0200
http://bitbucket.org/pypy/pypy/changeset/536910e79306/

Log:	make it rather a fatal error

diff --git a/pypy/objspace/flow/argument.py b/pypy/objspace/flow/argument.py
--- a/pypy/objspace/flow/argument.py
+++ b/pypy/objspace/flow/argument.py
@@ -204,8 +204,7 @@
         # if a **kwargs argument is needed, create the dict
         w_kwds = None
         if signature.has_kwarg():
-            w_kwds = self.space.newdict()
-            scope_w[co_argcount + signature.has_vararg()] = w_kwds
+            raise TypeError("Keyword arguments as **kwargs is not supported by RPython")
 
         # handle keyword arguments
         num_remainingkwds = 0


More information about the pypy-commit mailing list