[pypy-commit] pypy default: Wrap(r_singlefloat) is not supported by the std obj space either.
arigo
noreply at buildbot.pypy.org
Sun Dec 11 15:09:53 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r50381:20cf388f70b8
Date: 2011-12-11 14:11 +0100
http://bitbucket.org/pypy/pypy/changeset/20cf388f70b8/
Log: Wrap(r_singlefloat) is not supported by the std obj space either.
diff --git a/pypy/objspace/fake/objspace.py b/pypy/objspace/fake/objspace.py
--- a/pypy/objspace/fake/objspace.py
+++ b/pypy/objspace/fake/objspace.py
@@ -9,7 +9,7 @@
from pypy.rlib.unroll import unrolling_iterable
from pypy.rlib.objectmodel import instantiate, we_are_translated
from pypy.rlib.nonconst import NonConstant
-from pypy.rlib.rarithmetic import r_uint
+from pypy.rlib.rarithmetic import r_uint, r_singlefloat
from pypy.translator.translator import TranslationContext
from pypy.tool.option import make_config
@@ -145,9 +145,15 @@
self._see_interp2app(x)
if isinstance(x, GetSetProperty):
self._see_getsetproperty(x)
+ if isinstance(x, r_singlefloat):
+ self._wrap_not_rpython(x)
return w_some_obj()
wrap._annspecialcase_ = "specialize:argtype(1)"
+ def _wrap_not_rpython(self, x):
+ "NOT_RPYTHON"
+ raise NotImplementedError
+
def _see_interp2app(self, interp2app):
"NOT_RPYTHON"
activation = interp2app._code.activation
More information about the pypy-commit
mailing list