[pypy-svn] r7456 - pypy/trunk/src/pypy/translator

hpk at codespeak.net hpk at codespeak.net
Fri Nov 19 17:58:48 CET 2004


Author: hpk
Date: Fri Nov 19 17:58:48 2004
New Revision: 7456

Modified:
   pypy/trunk/src/pypy/translator/annrpython.py
Log:
an (commented out!) hack by which you can ignore
stupid *args processing related errors while
annotating 



Modified: pypy/trunk/src/pypy/translator/annrpython.py
==============================================================================
--- pypy/trunk/src/pypy/translator/annrpython.py	(original)
+++ pypy/trunk/src/pypy/translator/annrpython.py	Fri Nov 19 17:58:48 2004
@@ -187,6 +187,11 @@
             missingargs = expectedargs - len(inputcells)
             nbdefaults = len(func.func_defaults or ())
             if not (0 <= missingargs <= nbdefaults):
+                # XXX hack to avoid "*args" related processing 
+                #     to bail out
+                #v = graph.getreturnvar()
+                #return self.bindings.get(v, annmodel.SomeImpossibleValue())
+                # XXX end hack 
                 if nbdefaults:
                     msg = "%d to %d" % (expectedargs-nbdefaults,
                                         expectedargs)



More information about the Pypy-commit mailing list