[pypy-svn] r7633 - pypy/trunk/src/pypy/translator
hpk at codespeak.net
hpk at codespeak.net
Tue Nov 23 18:19:01 CET 2004
Author: hpk
Date: Tue Nov 23 18:19:01 2004
New Revision: 7633
Modified:
pypy/trunk/src/pypy/translator/annrpython.py
Log:
yet another Exception becomes a warning
Modified: pypy/trunk/src/pypy/translator/annrpython.py
==============================================================================
--- pypy/trunk/src/pypy/translator/annrpython.py (original)
+++ pypy/trunk/src/pypy/translator/annrpython.py Tue Nov 23 18:19:01 2004
@@ -208,9 +208,10 @@
expectedargs)
else:
msg = "%d" % expectedargs
- raise AnnotatorError, (
+ print ("!!! AnnotatorError, (ignored!!!)"
"got %d inputcells in call to %r; expected %s" % (
len(inputcells), func, msg))
+ return annmodel.SomeImpossibleValue()
for extra in func.func_defaults[-missingargs:]:
inputcells.append(self.bookkeeper.immutablevalue(extra))
inputcells.extend(extracells)
More information about the Pypy-commit
mailing list