Commits

Maciej Fijalkowski committed 39f0f4b

Backout 4f6fde5fcf81 (breaks translation)

  • Participants
  • Parent commits ca1b566

Comments (0)

Files changed (2)

File pypy/module/micronumpy/test/test_dtypes.py

         assert numpy.complex128(1.2) == numpy.complex128(complex(1.2, 0))
         assert numpy.complex64(1.2) == numpy.complex64(complex(1.2, 0))
         raises (TypeError, numpy.array, [3+4j], dtype=float)
-        a = (0.5+1.5j)
-        assert '{0:g}'.format(a) == '{0:g}'.format(numpy.complex64(a))
 
     def test_complex(self):
         import _numpypy as numpy

File pypy/module/micronumpy/types.py

     def for_computation(v):   
         return float(v[0]), float(v[1])
 
-    def to_builtin_type(self, space, box):
-        return space.wrap(complex(*self.for_computation(self.unbox(box))))
-
     def read_bool(self, arr, i, offset):
         v = self.for_computation(self._read(arr.storage, i, offset))
         return bool(v[0]) or bool(v[1])