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

arigo at codespeak.net arigo at codespeak.net
Thu Sep 27 14:17:54 CEST 2007


Author: arigo
Date: Thu Sep 27 14:17:54 2007
New Revision: 46950

Modified:
   pypy/dist/pypy/interpreter/argument.py
Log:
This assert helps the annotator figure out impossible cases.
Motivated by "checkmodule.py struct".


Modified: pypy/dist/pypy/interpreter/argument.py
==============================================================================
--- pypy/dist/pypy/interpreter/argument.py	(original)
+++ pypy/dist/pypy/interpreter/argument.py	Thu Sep 27 14:17:54 2007
@@ -524,6 +524,7 @@
             if self.w_stararg is None:   # common case
                 args_left = co_argcount - blindargs
                 if args_left < 0:  # check required by rpython
+                    assert extravarargs is not None
                     starargs_w = extravarargs
                     if len(args_w):
                         starargs_w.extend(args_w)



More information about the Pypy-commit mailing list