1. Jeff Terrace
  2. pypy

Commits

Armin Rigo  committed 20cf388

Wrap(r_singlefloat) is not supported by the std obj space either.

  • Participants
  • Parent commits f0e6f9c
  • Branches default

Comments (0)

Files changed (1)

File pypy/objspace/fake/objspace.py

View file
 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
 
                 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