[pypy-svn] r9946 - pypy/dist/pypy/interpreter

arigo at codespeak.net arigo at codespeak.net
Sun Mar 20 19:38:07 CET 2005


Author: arigo
Date: Sun Mar 20 19:38:07 2005
New Revision: 9946

Modified:
   pypy/dist/pypy/interpreter/argument.py
Log:
argument parsing tweaks going on

Modified: pypy/dist/pypy/interpreter/argument.py
==============================================================================
--- pypy/dist/pypy/interpreter/argument.py	(original)
+++ pypy/dist/pypy/interpreter/argument.py	Sun Mar 20 19:38:07 2005
@@ -271,7 +271,7 @@
         argnames, varargname, kwargname = signature
         args_w, kwds_w = args.unpack()
         nargs = len(args_w)
-        if kwargname is not None:
+        if kwargname is not None or (kwds_w and defaults_w):
             msg2 = "non-keyword "
         else:
             msg2 = ""



More information about the Pypy-commit mailing list