Commits

Romain Guillebert committed 23c18ab

Merge default

Comments (0)

Files changed (1)

pypy/module/micronumpy/interp_boxes.py

     def __repr__(self):
         return '%s(%s)' % (self.__class__.__name__, self.value)
 
+    def descr_reduce(self, space):
+        numpypy = space.getbuiltinmodule("_numpypy")
+        assert isinstance(numpypy, MixedModule)
+        multiarray = numpypy.get("multiarray")
+        assert isinstance(multiarray, MixedModule)
+        scalar = multiarray.get("scalar")
+
+        return space.newtuple([scalar, space.wrap(self._get_dtype())])
+
 class ComplexBox(object):
     _mixin_ = True